mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 03:41:08 +00:00
run-autopkgtest: With --ppa we usually do not want --trigger, so only require either
This commit is contained in:
parent
946a8d874c
commit
de339d3603
@ -24,7 +24,7 @@ def parse_args():
|
||||
help='Only run test(s) on given architecture name(s). '
|
||||
'Can be specified multiple times (default: all).')
|
||||
parser.add_argument('--trigger', action='append', default=[],
|
||||
metavar='SOURCE/VERSION', required=True,
|
||||
metavar='SOURCE/VERSION',
|
||||
help='Add triggering package to request. '
|
||||
'Can be specified multiple times.')
|
||||
parser.add_argument('--ppa', metavar='LPUSER/PPANAME', action='append',
|
||||
@ -35,6 +35,9 @@ def parse_args():
|
||||
help='Source package name(s) whose tests to run.')
|
||||
args = parser.parse_args()
|
||||
|
||||
if not args.trigger and not args.ppa:
|
||||
parser.error('One of --trigger or --ppa must be given')
|
||||
|
||||
# verify syntax of triggers
|
||||
for t in args.trigger:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user