mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +00:00
autopkgtest: Support Ubuntu's run_id format
These have a hash appended. We don't actually use the baseline retrying, which is where the ID parsing is used, but we might as well handle this, not least so we don't crash.
This commit is contained in:
parent
c9dfcf9b06
commit
9523425cb2
@ -891,7 +891,8 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
return
|
||||
|
||||
run_id = os.path.basename(os.path.dirname(url))
|
||||
seen = round(calendar.timegm(time.strptime(run_id, '%Y%m%d_%H%M%S@')))
|
||||
# 20200101_000000 is 15 chars long
|
||||
seen = round(calendar.timegm(time.strptime(run_id[0:15], '%Y%m%d_%H%M%S')))
|
||||
# allow some skipped tests, but nothing else
|
||||
if exitcode in [0, 2]:
|
||||
result = Result.PASS
|
||||
|
Loading…
x
Reference in New Issue
Block a user