aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-30 15:05:41 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-30 15:06:03 -0700
commitab4ebdf1751158391100efb0002f40b1d7f6314c (patch)
treebe675ed7b35164a24bdae5e8f1d3dd73af98490f /tools
parent7c488dd266466f80e55a3f02050f4e4a019d64b5 (diff)
Changed autoformatting rules to ensure tests get clumped together with
the thing below them.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test.nom6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/test.nom b/tools/test.nom
index ebd9fab..bd51e10 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -16,9 +16,7 @@ for %path in (command line args):
for file %filename in %path:
if (%filename matches "%.nom$"): use %filename
-for %path in (command line args):
- use %path
-
+for %path in (command line args): use %path
%tests = ((=lua "Source:from_string(\%s)") = %t for %s = %t in (tests))
for %path in (command line args):
for file %filename in %path:
@@ -27,7 +25,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()"