diff options
author | jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-10-21 16:25:05 +0000 |
---|---|---|
committer | jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-10-21 16:25:05 +0000 |
commit | 0df85e0090dc5550abd3285fd6a09d902b46b9cf (patch) | |
tree | 1cf18e95e370fc99996a806be27428302e0d2189 /tko/parsers | |
parent | b470a7a6b9c11742cf7175f5bf97f9b45ddaf41a (diff) |
Only increment the boot count in the parser for reboots that aren't
done as part of a test; the user doesn't see the result of these
in-test boots in the tko results, so they shouldn't affect the
boot count either.
Risk: Low
Visibility: This eliminates "gaps" in the boot counts from tests
that perform reboots as part of the test.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@2311 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/parsers')
-rw-r--r-- | tko/parsers/version_1.py | 3 |
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) |