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.
This commit is contained in:
Andrew Ruthven 2022-12-14 23:58:49 +13:00 committed by Andrew Ruthven
parent fc09febad2
commit 3c1d39ff85

View File

@ -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`"