mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-11 19:31:08 +00:00
autopkgtest: Fix the date creation and comparison for time_t hack
This commit is contained in:
parent
50d59b67db
commit
57710ee6e2
@ -19,7 +19,7 @@
|
||||
import calendar
|
||||
import collections
|
||||
from copy import deepcopy
|
||||
from datetime import datetime
|
||||
from datetime import datetime, date
|
||||
from enum import Enum
|
||||
import os
|
||||
import json
|
||||
@ -1133,7 +1133,7 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
qname = 'debci-%s-%s' % (self.options.series, arch)
|
||||
# FIXME: Remove after the time_t transition
|
||||
if (arch == "armhf" and self.options.series == "noble" and
|
||||
datetime.utcnow() < datetime.date(2024, 4, 4)):
|
||||
datetime.utcnow().date() < date(2024, 4, 4)):
|
||||
params["all-proposed"] = "1"
|
||||
params['submit-time'] = datetime.strftime(datetime.utcnow(), '%Y-%m-%d %H:%M:%S%z')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user