Always print warnings/failures in integration test

This makes it easier to debug issues when they appear in the CI.
This commit is contained in:
Robert Müller 2022-08-28 16:22:16 +02:00
parent b31fa557b7
commit 0bde042c11

View file

@ -355,23 +355,16 @@ do
then
continue
fi
if [ "$arg_verbose" != "1" ]
then
continue
fi
echo "[!] Warning: $stderr"
cat "$stderr"
done
if test -n "$(find . -maxdepth 1 -name 'fail_*' -print -quit)"
then
if [ "$arg_verbose" == "1" ]
then
for fail in fail_*
do
cat "$fail"
done
fi
for fail in fail_*
do
cat "$fail"
done
print_results
echo "[-] Test failed. See errors above."
exit 1