summaryrefslogtreecommitdiff
path: root/tko/parse.py
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2008-02-12 20:55:34 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2008-02-12 20:55:34 +0000
commit6af41adc7d9999a1624e8a583d04a26b3b03d81e (patch)
treec902722ed0e1817b11451a9eb582b18f25cdd2cb /tko/parse.py
parentd87ff5ca195c91b1c34ff463fbe208c2e9731820 (diff)
Label different boots differently so we don't have duplicate 'test'
names in the tko db. Signed-off-by: Jeremy Orlow <jorlow@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@1234 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/parse.py')
-rwxr-xr-xtko/parse.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tko/parse.py b/tko/parse.py
index 8499c535..8a04f127 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -130,6 +130,7 @@ class job:
statuses = ['NOSTATUS', 'ERROR', 'ABORT', 'FAIL', 'WARN',
'GOOD', 'ALERT']
reboot_inprogress = 0 # Saw reboot start and not finish
+ boot_count = 0
alert_pending = None # Saw an ALERT for this test
group_subdir = None
sought_level = 0 # we log events at indent level 0
@@ -206,9 +207,10 @@ class job:
reboot_inprogress = 1
continue
if testname == 'reboot.verify':
- testname = 'boot'
+ testname = 'boot.%d' % boot_count
dprint('reboot verified')
reboot_inprogress = 0
+ boot_count += 1
if alert_pending:
status = 'ALERT'
reason = alert_pending