diff options
author | Kevin Ballard <kevin@sb.org> | 2014-10-02 12:31:46 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-10-02 12:33:42 -0700 |
commit | ae7b6156ac136f6cf7c30f5e0aeeda82dfc56af0 (patch) | |
tree | 2a066c22865071bf72584a6b8f680884af504529 /tests/interactive.fish | |
parent | 4ba95ad1c307fe484d490e7ba5c2ece19c3ae90d (diff) |
Rewrite fishscript testrunner for better output
Update the fishscript testrunner to use the same output style as the
interactive testrunner.
Diffstat (limited to 'tests/interactive.fish')
-rw-r--r-- | tests/interactive.fish | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/interactive.fish b/tests/interactive.fish index c3c7b609..dbc9bf88 100644 --- a/tests/interactive.fish +++ b/tests/interactive.fish @@ -63,13 +63,14 @@ function test_file end end -set -l failed 0 +set -l failed for i in *.expect if not test_file $i - set failed (expr $failed + 1) + set failed $failed $i end end +set failed (count $failed) if test $failed -eq 0 say green "All tests completed successfully" exit 0 |