Autopkgtest: Keep the actual run IDs

Don't clobber passed run IDs with newer failed results. This is potentially a
bit more expensive as we might re-fetch failed results at every run after a
PASS, but the IDs in our cache will be correct so that we can expose them in
the UI.
bzr-import-20160707
Martin Pitt 9 years ago
parent d81f6542b9
commit 6d0c3a1fa6

@ -423,9 +423,9 @@ class AutoPackageTest(object):
src, {}).setdefault(arch, [False, None, ''])
# don't clobber existing passed results with failures from re-runs
result[0] = result[0] or passed
result[1] = ver
if stamp > result[2]:
if passed or not result[0]:
result[0] = passed
result[1] = ver
result[2] = stamp
def send_test_request(self, src, arch, trigger):

Loading…
Cancel
Save