Only run macOS specific functional/integration tests while we're not running on our images

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-12-05 04:40:55 +00:00 committed by Megan Wilhite
parent cdfe825890
commit 0192f6e511

View file

@ -1053,6 +1053,9 @@ def _ci_test(session, transport):
if session.posargs[0] == "--":
session.posargs.pop(0)
chunk_cmd.extend(session.posargs)
else:
if CI_RUN and IS_DARWIN and chunk in ("functional", "integration"):
chunk_cmd.extend(["-k", "mac or darwin"])
else:
chunk_cmd = [chunk] + session.posargs
junit_report_filename = "test-results"