Skip to content

Commit 657f88c

Browse files
committed
[ci] Test pytest-forked boxing
This wraps all tests in pytest-forked so that segfaults and other process-terminations are properly reported by pytest TODO: Evaluate runtime overhead
1 parent 8a0911c commit 657f88c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/scripts/setup-pytest-env.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ function run_pytest() {
6363
extra_args+=('--reruns=3')
6464
fi
6565

66+
if [[ ! "${extra_args[@]}" == *" -n"* ]]; then
67+
extra_args+=("-n=1")
68+
fi
69+
6670
suite_name="${test_suite_name}-${ffi_type}"
6771
exit_code=0
6872
TVM_FFI=${ffi_type} python3 -m pytest \

0 commit comments

Comments
 (0)