Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ failures=()

for file in test/test_*.tcl
do
run_test "$1" "$file"
if [ $? -gt 0 ] ; then
run_test "$1" "$file" > /tmp/output 2>&1
if [ $? -gt 0 ] || grep -q 'error' /tmp/output ; then
failures+=($file)
fi
cat /tmp/output
done

echo "Test Summary"
Expand All @@ -26,6 +27,9 @@ if [ ${#failures[@]} -gt 0 ] ; then
echo ${#failures[@]} " tests failed:"
for failure in ${failures[@]} ; do
echo " ${failure}"
if [ -n "${CI}" ] ; then
echo "::error file=${failure}::error" ;
fi
done
exit ${#failures[@]}
else
Expand Down