- It didn't work with pytest xdist. - The AI sometimes forgets to build before testing, but it is rare.
12 lines
159 B
Bash
Executable file
12 lines
159 B
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
./build.sh
|
|
WORKERS=$(( $(nproc)*2 ))
|
|
set -x
|
|
pytest -n $WORKERS "$@"
|
|
RC1=$?
|
|
pytest -m flaky "$@"
|
|
RC2=$?
|
|
exit $(( RC1 || RC2 ))
|