From f9bc6c2b09c18dd48f839f53d834c6fd1bfd2dd3 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 19 Jan 2021 10:30:05 -0800 Subject: pactest.py: read options from PACTEST_OPTS Makes it easier to pass options when not running pactest directly. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/pactest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py index 20af41dc..c295bfc0 100755 --- a/test/pacman/pactest.py +++ b/test/pacman/pactest.py @@ -125,7 +125,8 @@ def create_parser(): # 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") -- cgit v1.2.3-54-g00ecf