summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tko/parsers/version_1.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tko/parsers/version_1.py b/tko/parsers/version_1.py
index 36ae7c43..8dd6b2c1 100644
--- a/tko/parsers/version_1.py
+++ b/tko/parsers/version_1.py
@@ -263,7 +263,6 @@ class parser(base.parser):
# adjust the testname if this is a reboot
if line.testname == "reboot" and line.subdir is None:
line.testname = "boot.%d" % boot_count
- boot_count += 1
else:
assert False
@@ -292,6 +291,8 @@ class parser(base.parser):
finished_time,
running_test)
running_test = None
+ if new_test.testname == ("boot.%d" % boot_count):
+ boot_count += 1
msg = "ADD: %s\nSubdir: %s\nTestname: %s\n%s"
msg %= (new_test.status, new_test.subdir,
new_test.testname, new_test.reason)