Skip to content

Commit d201c1e

Browse files
committed
Swift: support linux-only tests
1 parent a244b82 commit d201c1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift/integration-tests/runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def execute_test(path):
3434
return subprocess.run([sys.executable, "-u", path.name], cwd=path.parent).returncode == 0
3535

3636
def skipped(test):
37-
return platform.system() != "Darwin" and "osx-only" in test.parts
37+
if platform.system() == "Darwin":
38+
return "linux-only" in test.parts
39+
else:
40+
return "osx-only" in test.parts
3841

3942

4043
def main(opts):

0 commit comments

Comments
 (0)