diff options
| author | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 09:05:10 +0100 |
|---|---|---|
| committer | Josh Wainwright <josh.wainwright@ldra.com> | 2016-04-21 09:05:10 +0100 |
| commit | 2b18735726cd92be87e20f30680d85e7f0f1a3b2 (patch) | |
| tree | 7dfd6c5279ea9a3794d005941ac334d9a9b69099 /lua/test.sh | |
| parent | a4f927716f69cc56d20b7960d345dc9d91cebbf5 (diff) | |
| download | vis-2b18735726cd92be87e20f30680d85e7f0f1a3b2.tar.gz vis-2b18735726cd92be87e20f30680d85e7f0f1a3b2.tar.xz | |
Use .status files instead of .true files and write error to .err file
Diffstat (limited to 'lua/test.sh')
| -rw-r--r-- | lua/test.sh | 9 |
1 files changed, 5 insertions, 4 deletions
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" |
