Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Fix ruuner.py to handle errors (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Surnin <dmitry.surnin@dsr-company.com>
  • Loading branch information
dsurnin authored and ashcherbakov committed Dec 11, 2017
1 parent e847328 commit 059122f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runner.py
Expand Up @@ -11,6 +11,13 @@ def run():
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)
log("Found {} test modules".format(len(testList)))
if not testList:
Expand Down

0 comments on commit 059122f

Please sign in to comment.