summaryrefslogtreecommitdiff
path: root/test/RegressTests.py
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2015-11-04 19:19:07 -0700
committerCraig Earls <enderw88@gmail.com>2015-11-04 19:19:07 -0700
commitcb05126e18f4d2fa5aa18cdb5a6af03436962068 (patch)
tree2691f85ddd6c90c986a821bc646f5d0f582a7217 /test/RegressTests.py
parent1cf83c6f5f5d005fb143f34b32b86bb838cd9674 (diff)
parentd38f8d3bff66e89cc79b1791566fdf9eca62a8e9 (diff)
downloadfork-ledger-cb05126e18f4d2fa5aa18cdb5a6af03436962068.tar.gz
fork-ledger-cb05126e18f4d2fa5aa18cdb5a6af03436962068.tar.bz2
fork-ledger-cb05126e18f4d2fa5aa18cdb5a6af03436962068.zip
Merge commit 'd38f8d3bff66e89cc79b1791566fdf9eca62a8e9' into next
Diffstat (limited to 'test/RegressTests.py')
-rwxr-xr-xtest/RegressTests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/RegressTests.py b/test/RegressTests.py
index 0fef2127..a5bab42d 100755
--- a/test/RegressTests.py
+++ b/test/RegressTests.py
@@ -57,9 +57,6 @@ class RegressFile(object):
in_error = False
line = self.fd.readline()
- if not line:
- print >>sys.stderr, "WARNING: Empty testfile detected: %s" % (self.filename)
- return False
#print "line =", line
while line:
if line.startswith("test "):
@@ -167,6 +164,10 @@ class RegressFile(object):
harness.failure(os.path.basename(self.filename))
def run_tests(self):
+ if os.path.getsize(self.filename) == 0:
+ print >>sys.stderr, "WARNING: Empty testfile detected: %s" % (self.filename)
+ harness.failure(os.path.basename(self.filename))
+ return False
test = self.read_test()
while test:
self.run_test(test)