aboutsummaryrefslogtreecommitdiff
path: root/tools/test.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test.nom')
-rwxr-xr-xtools/test.nom5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/test.nom b/tools/test.nom
index 3d3329f..a80ea55 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -17,6 +17,7 @@ for %path in (command line args):
for %src = %test in %tests:
if (%src.filename == %filename):
add {test:%test, source:%src} to %file_tests
+
unless (%file_tests is empty):
sort %file_tests by % -> %.source
lua> "io.write('[ .. ] ', \%filename); io.flush()"
@@ -25,7 +26,7 @@ for %path in (command line args):
if %verbose:
say " \(yellow (%.test with "\n" replaced by "\n "))"
run %.test
- if %verbose:
- say (green "PASS")
+
+ if %verbose: say (green "PASS")
..else:
say "\r[\(green "PASS")"