diff options
Diffstat (limited to 'utils/create-jobs.py')
-rwxr-xr-x | utils/create-jobs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py index 1c15bb6..2bc293d 100755 --- a/utils/create-jobs.py +++ b/utils/create-jobs.py @@ -18,7 +18,7 @@ def parse_cmdline(machines, tests, rfs_types): parser.add_argument('--urlbase', '-u', action='store', dest='urlbase', help="url fetch base", default='https://download.automotivelinux.org/AGL/upload/ci/') - parser.add_argument('--boot', action='store', dest='rfs_type', nargs=1, required=True, + parser.add_argument('--boot', action='store', dest='rfs_type', choices=rfs_types, help='select boot type') parser.add_argument('--test', dest='tests', action='store', choices=tests + ['all'], help="add these test to the job", nargs='*', default=[]) @@ -50,7 +50,7 @@ def main(): args.job_name += ' - {}'.format(args.job_index) job = ajt.render_job(args.urlbase, args.machine, tests=args.tests, priority=args.priority, - rfs_type=args.rfs_type[0], job_name=args.job_name) + rfs_type=args.rfs_type, job_name=args.job_name) if args.job_file is None: print job |