From 3c1d39ff8520f294bc0ef6c533b7e76c1f484423 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 14 Dec 2022 23:58:49 +1300 Subject: [PATCH] Ensure the test suite exists before operating on it. I kept on making typos, so ended up with random directories, this should stop that from happening in future. --- testing/run_regressions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testing/run_regressions.sh b/testing/run_regressions.sh index 4dbbc19d..d6facccd 100755 --- a/testing/run_regressions.sh +++ b/testing/run_regressions.sh @@ -262,6 +262,12 @@ if [ "${SUITE}" = "all" ]; then else echo "Running $SUITE" REGRESSION="tests/${SUITE}" + + if [ ! -d $REGRESSION ]; then + echo "There is no test suite called $SUITE, have you made a mistake?" + exit 0 + fi + run_regression_suite "${SUITE}" fi TFINISH="`date +%s`"