autopkgtest: switch from testing=series to testing=testing

ubuntu/rebased
Paul Gevers 7 years ago
parent 5ae8ccbcc6
commit 278b3dcdd0
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -422,7 +422,7 @@ class Britney(object):
help="Compute which packages can migrate (the default)")
parser.add_option("", "--no-compute-migrations", action="store_false", dest="compute_migrations",
help="Do not compute which packages can migrate.")
parser.add_option("", "--series", action="store", dest="series", default='series',
parser.add_option("", "--series", action="store", dest="series", default='testing',
help="set distribution series name")
(self.options, self.args) = parser.parse_args()

@ -162,7 +162,7 @@ class TestData:
'''
self.path = tempfile.mkdtemp(prefix='testarchive.')
self.apt_source = 'deb file://%s /' % self.path
self.suite_testing = 'series'
self.suite_testing = 'testing'
self.suite_unstable = 'unstable'
self.compute_migrations = ''
self.dirs = {False: os.path.join(self.path, 'data', self.suite_testing),
@ -343,17 +343,17 @@ class TestBase(unittest.TestCase):
self.britney_conf = os.path.join(self.data.path, 'britney.conf')
with open(self.britney_conf, 'w') as f:
f.write('''
TESTING = data/series
TESTING = data/testing
UNSTABLE = data/unstable
NONINST_STATUS = data/series/non-installable-status
NONINST_STATUS = data/testing/non-installable-status
EXCUSES_OUTPUT = output/excuses.html
EXCUSES_YAML_OUTPUT = output/excuses.yaml
UPGRADE_OUTPUT = output/output.txt
HEIDI_OUTPUT = output/HeidiResult
STATIC_INPUT_DIR = data/series/input
STATE_DIR = data/series/state
STATIC_INPUT_DIR = data/testing/input
STATE_DIR = data/testing/state
ARCHITECTURES = amd64 arm64 armhf i386 powerpc ppc64el
NOBREAKALL_ARCHES = amd64 arm64 armhf i386 powerpc ppc64el

@ -156,15 +156,15 @@ class AutoPkgTestSwiftServer:
if __name__ == '__main__':
srv = AutoPkgTestSwiftServer()
srv.set_results({'autopkgtest-series': {
'series/i386/d/darkgreen/20150101_100000@': (0, 'darkgreen 1'),
'series/i386/g/green/20150101_100000@': (0, 'green 1', {'custom_environment': ['ADT_TEST_TRIGGERS=green']}),
'series/i386/l/lightgreen/20150101_100000@': (0, 'lightgreen 1'),
'series/i386/l/lightgreen/20150101_100101@': (4, 'lightgreen 2'),
'series/i386/l/lightgreen/20150101_100102@': (0, 'lightgreen 3'),
srv.set_results({'autopkgtest-testing': {
'testing/i386/d/darkgreen/20150101_100000@': (0, 'darkgreen 1'),
'testing/i386/g/green/20150101_100000@': (0, 'green 1', {'custom_environment': ['ADT_TEST_TRIGGERS=green']}),
'testing/i386/l/lightgreen/20150101_100000@': (0, 'lightgreen 1'),
'testing/i386/l/lightgreen/20150101_100101@': (4, 'lightgreen 2'),
'testing/i386/l/lightgreen/20150101_100102@': (0, 'lightgreen 3'),
}})
srv.start()
print('Running on http://localhost:8080/autopkgtest-series')
print('Running on http://localhost:8080/autopkgtest-testing')
print('Press Enter to quit.')
sys.stdin.readline()
srv.stop()

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save