Commit 101672f6 authored by Ondřej Surý's avatar Ondřej Surý

Fail running run.sh when clean.sh or setup.sh fails

parent a6bdb963
......@@ -185,16 +185,24 @@ fi
# Clean up files left from any potential previous runs
if test -f "$systest/clean.sh"
then
( cd "${systest}" && $SHELL clean.sh "$@" )
( cd "${systest}" && $SHELL clean.sh "$@" )
ret=$?
if [ $ret -ne 0 ]; then
echowarn "I:$systest:clean.sh script failed with $ret"
fi
fi
# Set up any dynamically generated test data
if test -f "$systest/setup.sh"
then
( cd "${systest}" && $SHELL setup.sh "$@" )
( cd "${systest}" && $SHELL setup.sh "$@" )
ret=$?
if [ $ret -ne 0 ]; then
echowarn "I:$systest:clean.sh script failed with $ret"
fi
fi
status=0
run=0
# Run the tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment