Repository navigation
Commit 0daf644
committed
zephyr-cp: run the tests in parallel
The suite runs one test at a time and is 17 of the zephyr-tests job's
34 to 44 minutes. 84% of that is bsim, where every test starts a phy
and one or two simulated devices, and the asan board from adafruit#11317
doubled the native tests, 220 -> 322.
Run pytest with one worker per CPU. --dist loadfile keeps each file on
one worker, which test_web_workflow.py needs for its fixed port 8090;
the rest is already per test, tmp_path for the flash images and a sim
id from the test's node id.
Measured on four cores, whole suite, 322 passed each time: 758 s with
one worker, 350 s with two, 249 s with three, 224 s with four. -n auto
counts physical cores, so it picks 2 on the runner and the host's count
inside a container. sysctl is the macOS spelling of nproc, as in
tools/ci.sh.1 parent d36f869 commit 0daf644
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
0 commit comments