Rewrite fishscript testrunner for better output

Update the fishscript testrunner to use the same output style as the
interactive testrunner.
This commit is contained in:
Kevin Ballard
2014-10-02 12:31:46 -07:00
parent 4ba95ad1c3
commit ae7b6156ac
5 changed files with 52 additions and 72 deletions

View File

@@ -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