mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-10 05:57:28 +00:00
run-autopkgtest: Add --ppa option
This commit is contained in:
parent
445e33e9e0
commit
b00b051fab
@ -26,6 +26,8 @@ def parse_args():
|
||||
parser.add_argument('--trigger', action='append', default=[],
|
||||
help='Add triggering package to request. '
|
||||
'Can be specified multiple times.')
|
||||
parser.add_argument('--ppa', metavar='LPUSER/PPANAME',
|
||||
help='Enable PPA for requested test(s)')
|
||||
parser.add_argument('package', nargs='+',
|
||||
help='Source package name(s) whose tests to run.')
|
||||
return parser.parse_args()
|
||||
@ -49,10 +51,12 @@ if __name__ == '__main__':
|
||||
if not args.architecture:
|
||||
args.architecture = config.adt_arches.split()
|
||||
|
||||
params = {}
|
||||
if args.trigger:
|
||||
params = '\n' + json.dumps({'triggers': args.trigger})
|
||||
else:
|
||||
params = ''
|
||||
params['triggers'] = args.trigger
|
||||
if args.ppa:
|
||||
params['ppa'] = args.ppa
|
||||
params = '\n' + json.dumps(params)
|
||||
|
||||
with kombu.Connection(config.adt_amqp) as conn:
|
||||
for arch in args.architecture:
|
||||
|
Loading…
x
Reference in New Issue
Block a user