From 275b9c9786954201a7b02460560fade640129f94 Mon Sep 17 00:00:00 2001 From: Disconnect3d Date: Sat, 3 Dec 2022 20:05:54 +0700 Subject: [PATCH] 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. --- tests/gdb-tests/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/gdb-tests/tests.sh b/tests/gdb-tests/tests.sh index 46b05fc8b..b07f27fd8 100755 --- a/tests/gdb-tests/tests.sh +++ b/tests/gdb-tests/tests.sh @@ -32,7 +32,8 @@ while [[ $# -gt 0 ]]; do case $1 in -p | --pdb) USE_PDB=1 - echo "Will run tests with Python debugger" + SERIAL=1 + echo "Will run tests in serial and with Python debugger" shift ;; -c | --cov)