Commit bd36966b authored by Andrew Tridgell's avatar Andrew Tridgell

report exit code when failing a test

parent f76933b1
...@@ -67,8 +67,11 @@ checkit() { ...@@ -67,8 +67,11 @@ checkit() {
failed= failed=
echo "Running: \"$1\"" >${log} echo "Running: \"$1\"" >${log}
echo "">>${log} echo "">>${log}
eval "$1 || failed=YES" >>${log} 2>&1 eval "$1" >>${log} 2>&1
status=$?
if [ $status != 0 ]; then
failed="YES";
fi
echo "-------------">>${log} echo "-------------">>${log}
echo "check how the files compare with diff:">>${log} echo "check how the files compare with diff:">>${log}
echo "">>${log} echo "">>${log}
...@@ -88,7 +91,7 @@ checkit() { ...@@ -88,7 +91,7 @@ checkit() {
cat ${log} cat ${log}
rm ${log} rm ${log}
else else
echo " FAILED (test # ${testnum})." echo " FAILED (test # ${testnum} status=$status)."
fi fi
return 1 return 1
fi fi
......
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