From ab4ebdf1751158391100efb0002f40b1d7f6314c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 30 Jul 2018 15:05:41 -0700 Subject: Changed autoformatting rules to ensure tests get clumped together with the thing below them. --- tools/test.nom | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools') 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()" -- cgit v1.2.3