From 6188025b85d63061fdaaaab840a60681f46194f3 Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Fri, 15 Mar 2019 16:29:51 +0100 Subject: create-jobs: fix the error check This patch fixes the error check to permit the job creation when inserting only the --url arguement and not the branch/version or the changeid/patchsetm, to grant the job creation with a custom url. Change-Id: I625e13cacee8da6df569ab90038318c0994ec1c6 Signed-off-by: Khouloud Touil --- utils/create-jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/create-jobs.py b/utils/create-jobs.py index ed705cf..c2e9b57 100755 --- a/utils/create-jobs.py +++ b/utils/create-jobs.py @@ -65,11 +65,11 @@ def parse_cmdline(machines, tests, rfs_types): if args.callback_to and not args.callback_from: parser.error("When using '--callback-to', '--callback-from' is mandatory.") - if (args.build_type == "ci"): + if (args.build_type == "ci") and not args.url: if (not args.changeid) or (not args.patchset): parser.error("when using '--build-type' '--changeid' and '--patchset' arguments needs to be set.") - if (args.build_type == "release"): + if (args.build_type == "release") and not args.url: if (not args.vcs_branch) or (not args.version): parser.error("when using '--build-type' '--branch' and '--versiom' arguments needs to be set.") -- cgit 1.2.3-korg