aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorLoys Ollivier <lollivier@baylibre.com>2018-01-03 17:10:53 +0100
committerLoys Ollivier <lollivier@baylibre.com>2018-01-03 17:10:53 +0100
commit4bae0df78fae4270038eb44fa2720dfd28675d6a (patch)
tree60acdb976a5bd88e446676f68286d10a44f8f2c7 /utils
parentc5cfc4c57f6acb4e1955aa2cd18d7a9062a67acb (diff)
utils: Verify that callback options are correct v2eel_5.0.0eel/5.0.05.0.0
'--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-xutils/create-jobs.py4
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):