Skip to content

Commit 58e8df5

Browse files
committed
tests: apply to serial/parallel
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 92c5d6d commit 58e8df5

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

bin/run_tests.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,28 @@
5454
)
5555
subprocess.run(unit_test_args, check=True)
5656

57+
match args.platform:
58+
case "all":
59+
plat_args = []
60+
case "native":
61+
plat_args = ["-m not pyodide", "-m not android", "-m not ios"]
62+
case platform:
63+
plat_args = [f"-m {platform}"]
64+
5765
# Run the serial integration tests without multiple processes
5866
serial_integration_test_args = [
5967
sys.executable,
6068
"-m",
6169
"pytest",
62-
"-m",
63-
"serial",
70+
"-m serial",
71+
*plat_args,
6472
"-x",
6573
"--durations",
6674
"0",
6775
"--timeout=2400",
6876
"test",
6977
"-vv",
7078
]
71-
match args.platform:
72-
case "all":
73-
pass
74-
case "native":
75-
serial_integration_test_args += ["-m not pyodide", "-m not android", "-m not ios"]
76-
case platform:
77-
serial_integration_test_args += [f"-m {platform}"]
7879

7980
print(
8081
"\n\n=========================== SERIAL INTEGRATION TESTS ===========================",
@@ -87,8 +88,8 @@
8788
sys.executable,
8889
"-m",
8990
"pytest",
90-
"-m",
91-
"not serial",
91+
"-m not serial",
92+
*plat_args,
9293
f"--numprocesses={args.num_processes}",
9394
"-x",
9495
"--durations",

0 commit comments

Comments
 (0)