Skip to content

Commit c249b97

Browse files
committed
allow to override SKIP_UNITTESTS via env
1 parent 8d7e935 commit c249b97

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: runTests.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,12 @@ def run(self):
131131
user_tests = "rocm"
132132
if user_tests != "":
133133
precmd = "export USER_UNIT_TESTS=%s ;" % user_tests
134-
skiptests = ""
134+
skipped = []
135135
if "lxplus" in getHostName():
136-
skiptests = "SKIP_UNITTESTS=ExpressionEvaluatorUnitTest"
136+
skipped.append("ExpressionEvaluatorUnitTest")
137+
skipped += [t for t in os.environ.get("SKIP_UNITTESTS", "").split(" ") if t]
138+
skiptests = " ".join(["skiptest_%s" % t for t in skipped])
139+
print("Skipped tests> %s" % skiptests)
137140
TEST_PATH = os.environ["CMSSW_RELEASE_BASE"] + "/test/" + arch
138141
err, cmd = run_cmd(
139142
"cd "

0 commit comments

Comments
 (0)