diff options
author | jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> | 2010-04-13 19:10:03 +0000 |
---|---|---|
committer | jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> | 2010-04-13 19:10:03 +0000 |
commit | 98e7fb373e2c0b3ca5745d4eb35617ece4c45501 (patch) | |
tree | d2416a5ca76c30fb3637df56e61e99971cc3d1ac /tko | |
parent | 0700f626cceea3b0364dbe17549ccc053a753122 (diff) |
Fix display of embedded results table on job details tab
Signed-off-by: James Ren <jamesren@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@4408 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko')
-rw-r--r-- | tko/display.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tko/display.py b/tko/display.py index d321d5b1..47f646a3 100644 --- a/tko/display.py +++ b/tko/display.py @@ -200,14 +200,17 @@ def status_html(db, box_data, shade): eg. { 'GOOD' : 4, 'FAIL' : 1 } """ status_count_subset = box_data.status_count.copy() - status_count_subset[8] = 0 # Don't count TEST_NA - status_count_subset[9] = 0 # Don't count RUNNING + test_na = db.status_idx['TEST_NA'] + running = db.status_idx['RUNNING'] + + status_count_subset[test_na] = 0 # Don't count TEST_NA + status_count_subset[running] = 0 # Don't count RUNNING html = "%d / %d " % (status_count_subset.get(6, 0), sum(status_count_subset.values())) - if 8 in box_data.status_count.keys(): - html += ' (%d N/A)' % box_data.status_count[8] - if 9 in box_data.status_count.keys(): - html += ' (%d running)' % box_data.status_count[9] + if test_na in box_data.status_count.keys(): + html += ' (%d N/A)' % box_data.status_count[test_na] + if running in box_data.status_count.keys(): + html += ' (%d running)' % box_data.status_count[running] if box_data.reasons_list: reasons_list = box_data.reasons_list |