HBASE-19246 Trivial fix in findHangingTests.py to make it not stop on finding 'bad string'.

This commit is contained in:
Apekshit Sharma 2017-11-13 11:43:35 -08:00
parent 31287d8931
commit 72ba5c294e
1 changed files with 0 additions and 1 deletions

View File

@ -86,7 +86,6 @@ def get_bad_tests(console_url):
for bad_string in BAD_RUN_STRINGS: for bad_string in BAD_RUN_STRINGS:
if re.match(".*" + bad_string + ".*", line): if re.match(".*" + bad_string + ".*", line):
print "Bad string found in build:\n > {}".format(line) print "Bad string found in build:\n > {}".format(line)
return
print "Result > total tests: {:4} failed : {:4} timedout : {:4} hanging : {:4}".format( print "Result > total tests: {:4} failed : {:4} timedout : {:4} hanging : {:4}".format(
len(all_tests_set), len(failed_tests_set), len(timeout_tests_set), len(hanging_tests_set)) len(all_tests_set), len(failed_tests_set), len(timeout_tests_set), len(hanging_tests_set))
return [all_tests_set, failed_tests_set, timeout_tests_set, hanging_tests_set] return [all_tests_set, failed_tests_set, timeout_tests_set, hanging_tests_set]