Commit f1806dc8 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

Burnin: Fix some verbal errors

parent b313aedf
...@@ -63,7 +63,7 @@ LOCK_EXT = ".lock" ...@@ -63,7 +63,7 @@ LOCK_EXT = ".lock"
SECTION_SEPARATOR = \ SECTION_SEPARATOR = \
"-- -------------------------------------------------------------------" "-- -------------------------------------------------------------------"
SECTION_PREFIX = "-- " SECTION_PREFIX = "-- "
SECTION_RUNNED = "Tests Runned" SECTION_RUNNED = "Tests Run"
SECTION_RESULTS = "Results" SECTION_RESULTS = "Results"
SECTION_NEW = "__ADD_NEW_SECTION__" SECTION_NEW = "__ADD_NEW_SECTION__"
SECTION_PASSED = " * Passed:" SECTION_PASSED = " * Passed:"
...@@ -164,12 +164,18 @@ def _add_testsuite_results(contents, section, testsuite): ...@@ -164,12 +164,18 @@ def _add_testsuite_results(contents, section, testsuite):
""" """
if section == SECTION_PASSED: if section == SECTION_PASSED:
line = contents[-2] line = contents[-2].rstrip()
new_line = line.rstrip() + " " + testsuite + ",\n" if line.endswith(":"):
new_line = line + " " + testsuite + "\n"
else:
new_line = line + ", " + testsuite + "\n"
contents[-2] = new_line contents[-2] = new_line
elif section == SECTION_FAILED: elif section == SECTION_FAILED:
line = contents[-1] line = contents[-1].rstrip()
new_line = line.rstrip() + " " + testsuite + ",\n" if line.endswith(":"):
new_line = line.rstrip() + " " + testsuite + "\n"
else:
new_line = line.rstrip() + ", " + testsuite + "\n"
contents[-1] = new_line contents[-1] = new_line
else: else:
sys.stderr.write("Unknown section %s in _add_testsuite_results\n" sys.stderr.write("Unknown section %s in _add_testsuite_results\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment