mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 03:41:08 +00:00
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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user