Skip to content

Commit

Permalink
Fix runner.py to handle errors (hyperledger#485)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Surnin <[email protected]>
  • Loading branch information
dsurnin authored and ashcherbakov committed Dec 11, 2017
1 parent b051586 commit 311d822
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ def run(pytest, output_file, repeatUntilFailure, testDir, test_slice):
collectedData = open(testListFile).read()
os.remove(testListFile)
log("Collecting modules")

# check errors during collect
if re.findall("={5,} ERRORS ={5,}", collectedData):
log("Errors found during collection")
log(collectedData)
return -1

testList = re.findall("<Module '(.+)'>", collectedData)
# testList = list(set(os.path.dirname(t) for t in testList))
first_level_tests = set()
Expand Down

0 comments on commit 311d822

Please sign in to comment.