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:
parent
113e038869
commit
16416b2eef
|
@ -268,7 +268,11 @@ def main():
|
||||||
msg = "You can not use until_failure mode with pdb or no-discover"
|
msg = "You can not use until_failure mode with pdb or no-discover"
|
||||||
print(msg)
|
print(msg)
|
||||||
exit(5)
|
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)):
|
if ((opts.pdb or opts.no_discover) and (opts.black_regex)):
|
||||||
msg = "You can not use black-regex with pdb or no-discover"
|
msg = "You can not use black-regex with pdb or no-discover"
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|
Loading…
Reference in New Issue