diff options
author | Loys Ollivier <lollivier@baylibre.com> | 2018-01-03 17:10:53 +0100 |
---|---|---|
committer | Loys Ollivier <lollivier@baylibre.com> | 2018-01-03 17:10:53 +0100 |
commit | 4bae0df78fae4270038eb44fa2720dfd28675d6a (patch) | |
tree | 60acdb976a5bd88e446676f68286d10a44f8f2c7 /utils | |
parent | c5cfc4c57f6acb4e1955aa2cd18d7a9062a67acb (diff) |
'--callback-from' is mandatory but not '--callback-to'. Fix this and
allow specifying only 'from' without 'to'.
Fixes: 5c6cf2bf9c09 ("utils: Verify that callback options are correct")
Change-Id: I0706950cee4ede00cdbe7a3d1ade5500cc568502
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
Diffstat (limited to 'utils')
-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 e9701a5..f3415a1 100755 --- a/utils/create-jobs.py +++ b/utils/create-jobs.py @@ -50,8 +50,8 @@ def parse_cmdline(machines, tests, rfs_types): args = parser.parse_args() - if (bool(args.callback_from) ^ bool(args.callback_to)): - parser.error("To specify callbacks both '--callback-to' and '--callback-from' are mandatory.") + if args.callback_to and not args.callback_from: + parser.error("When using '--callback-to', '--callback-from' is mandatory.") if (args.url == 'release'): if (args.url_branch is None) and (args.url_version is None): |