From 2b18735726cd92be87e20f30680d85e7f0f1a3b2 Mon Sep 17 00:00:00 2001 From: Josh Wainwright Date: Thu, 21 Apr 2016 09:05:10 +0100 Subject: Use .status files instead of .true files and write error to .err file --- lua/test.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lua/test.sh') diff --git a/lua/test.sh b/lua/test.sh index f7c6fd4..852f035 100644 --- a/lua/test.sh +++ b/lua/test.sh @@ -26,15 +26,16 @@ for t in $test_files; do TESTS_OK=$((TESTS_OK + 1)) else printf "FAIL\n" - diff -u $t.ref $t.out + diff -u $t.ref $t.out > $t.err fi - elif [ -e $t.true ]; then - if ! grep -v true $t.true > /dev/null; then + elif [ -e $t.status ]; then + if ! grep -v true $t.status > /dev/null; then printf "PASS\n" TESTS_OK=$((TESTS_OK + 1)) else printf "FAIL\n" - grep -vn true $t.true + printf "$t\n" > $t.err + grep -vn true $t.status >> $t.err fi else printf "FAIL\n" -- cgit v1.2.3