From a1bc644bfb8a2247ee205350a0df4cff0c0f4fbc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 17 Jul 2014 22:47:54 +0200 Subject: [PATCH] fix a small issue in the alternative test runner --- test/run.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/run.py b/test/run.py index 52a8dec6..d912d634 100755 --- a/test/run.py +++ b/test/run.py @@ -365,6 +365,11 @@ if __name__ == '__main__': current = cases[0].path if cases else None count = fails = 0 for c in cases: + if current != c.path: + file_change(current, count, fails) + current = c.path + count = fails = 0 + try: if c.run(report): tests_fail += 1 @@ -380,10 +385,6 @@ if __name__ == '__main__': count += 1 - if current != c.path: - file_change(current, count, fails) - current = c.path - count = fails = 0 file_change(current, count, fails) print('\nSummary: (%s fails of %s tests) in %.3fs' % (tests_fail,