run-autopkgtest: Add --build-git option

bzr-import-20160707
Martin Pitt 9 years ago
parent cd3ac8cfbf
commit 735abeed3e

@ -39,6 +39,7 @@ def parse_args():
'from a test request. ' 'from a test request. '
'Can be specified multiple times.') 'Can be specified multiple times.')
parser.add_argument('--test-git', parser.add_argument('--test-git',
metavar='URL [branchname]',
help='A single URL or URL branchname. ' help='A single URL or URL branchname. '
'The test will be git cloned from that URL and ran ' 'The test will be git cloned from that URL and ran '
'from the checkout. This will not build binary ' 'from the checkout. This will not build binary '
@ -47,6 +48,11 @@ def parse_args():
'archive, or PPA if given. In this case the ' 'archive, or PPA if given. In this case the '
'srcpkgname will only be used for the result path in ' 'srcpkgname will only be used for the result path in '
'swift and be irrelevant for the actual test.') 'swift and be irrelevant for the actual test.')
parser.add_argument('--build-git',
metavar='URL [branchname]',
help='A single URL or URL branchname. '
'Like --test-git`, but will first build binary '
'packages from the branch and run tests against those.')
parser.add_argument('--test-bzr', parser.add_argument('--test-bzr',
help='A single URL. ' help='A single URL. '
'The test will be checked out with bzr from that URL. ' 'The test will be checked out with bzr from that URL. '
@ -102,6 +108,8 @@ if __name__ == '__main__':
params['env'] = args.env params['env'] = args.env
if args.test_git: if args.test_git:
params['test-git'] = args.test_git params['test-git'] = args.test_git
elif args.build_git:
params['build-git'] = args.build_git
if args.test_bzr: if args.test_bzr:
params['test-bzr'] = args.test_bzr params['test-bzr'] = args.test_bzr
params = '\n' + json.dumps(params) params = '\n' + json.dumps(params)

Loading…
Cancel
Save