pactest.py: read options from PACTEST_OPTS
Makes it easier to pass options when not running pactest directly. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
84f9cb021e
commit
f9bc6c2b09
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ if __name__ == "__main__":
|
|||
|
||||
# parse options
|
||||
opt_parser = create_parser()
|
||||
(opts, args) = opt_parser.parse_args()
|
||||
(opts, args) = opt_parser.parse_args(args=os.getenv('PACTEST_OPTS', '').split())
|
||||
(opts, args) = opt_parser.parse_args(values=opts)
|
||||
|
||||
if args is None or len(args) == 0:
|
||||
tap.bail("no tests defined, nothing to do")
|
||||
|
|
Loading…
Add table
Reference in a new issue