aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/interactive.fish
diff options
context:
space:
mode:
Diffstat (limited to 'tests/interactive.fish')
-rw-r--r--tests/interactive.fish5
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