diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-03-15 16:29:51 +0100 |
---|---|---|
committer | Khouloud Touil <ktouil@baylibre.com> | 2019-03-15 16:29:51 +0100 |
commit | 6188025b85d63061fdaaaab840a60681f46194f3 (patch) | |
tree | 720135e68c76c57e0028d0ca425200f4eee8851b /utils/create-jobs.py | |
parent | 2e1f52ca83be9226b34635f420dd0533fbcc59cc (diff) |
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 <ktouil@baylibre.com>
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 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.") |