mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user