Merge "Error on invalid list parameter combination"

This commit is contained in:
Jenkins 2016-09-21 12:59:13 +00:00 committed by Gerrit Code Review
commit a0be39dede
1 changed files with 5 additions and 1 deletions

View File

@ -268,7 +268,11 @@ def main():
msg = "You can not use until_failure mode with pdb or no-discover"
print(msg)
exit(5)
if ((opts.pdb or opts.no_discover) and
(opts.blacklist_file or opts.whitelist_file)):
msg = "You can not use blacklist or whitelist with pdb or no-discover"
print(msg)
exit(6)
if ((opts.pdb or opts.no_discover) and (opts.black_regex)):
msg = "You can not use black-regex with pdb or no-discover"
print(msg)