Error on invalid list parameter combination

pdb and no_discover cannot be combined with black or white lists,
it was documented, but not checked.

Change-Id: I7168aef00505cb94051e2e587381efba9fd3e445
This commit is contained in:
Attila Fazekas 2016-08-31 17:01:46 +02:00
parent 113e038869
commit 16416b2eef
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)