mikeando/saru

having an unexpected logfile breaks saru

Opened this issue · 0 comments

If you have a file in the tests directory named saruXXXX.log where XXXX is anything, that isn't part of the regular saru0001.log progression, saru fails to run with this error:

Traceback (most recent call last):
File "/usr/src/git/saru/src/saru-run-test", line 663, in
runSuiteOfTests()
File "/usr/src/git/saru/src/saru-run-test", line 590, in runSuiteOfTests
last_log = max( [ int(re.search("saru(\d+).log",x).group(1)) for x in logs ] )
AttributeError: 'NoneType' object has no attribute 'group'