tests.sh: fix --pdb (set SERIAL when --pdb is set) (#1410)

When we optimized tests runs with gnu parallel execution, we broke the
--pdb flag. This commit fixes it and sets the SERIAL flag so that tests
are run one by one when --pdb is passed.
pull/1413/head
Disconnect3d 3 years ago committed by GitHub
parent c5d880020e
commit 275b9c9786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,7 +32,8 @@ while [[ $# -gt 0 ]]; do
case $1 in case $1 in
-p | --pdb) -p | --pdb)
USE_PDB=1 USE_PDB=1
echo "Will run tests with Python debugger" SERIAL=1
echo "Will run tests in serial and with Python debugger"
shift shift
;; ;;
-c | --cov) -c | --cov)

Loading…
Cancel
Save