From e192e3f4af8a23712193d599c9afd6bc4af12990 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Sun, 31 Mar 2024 23:55:03 -0400 Subject: [PATCH] tests: Allow altering arguments to test script This is very useful when changing C code, as only socket tests need to be run. --- run-tests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-tests b/run-tests index 04e7e300..2a88130a 100755 --- a/run-tests +++ b/run-tests @@ -17,4 +17,6 @@ fi set -x -python3 -m coverage run -m pytest -o python_files=*.py -v qrexec/tests "$@" +if [[ "$#" = 0 ]]; then set -- -v qrexec/tests; fi + +python3 -m coverage run -m pytest -o 'python_files=*.py' "$@"