From 0c5e80c3b42b2fc02e8b800bada7f6bb30a56578 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 4 Jul 2014 16:47:14 -0400 Subject: pactest: parse options before environment setup Signed-off-by: Andrew Gregory --- test/pacman/pactest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py index 0e06f17d..b2b9c289 100755 --- a/test/pacman/pactest.py +++ b/test/pacman/pactest.py @@ -82,12 +82,14 @@ if __name__ == "__main__": tap.bail("Python versions before 2.7 are not supported.") sys.exit(1) - # instantiate env and parser objects - root_path = tempfile.mkdtemp(prefix='pactest-') - env = pmenv.pmenv(root=root_path) + # parse options opt_parser = create_parser() (opts, args) = opt_parser.parse_args() + # instantiate env + root_path = tempfile.mkdtemp(prefix='pactest-') + env = pmenv.pmenv(root=root_path) + # add parsed options to env object util.verbose = opts.verbose env.pacman["debug"] = opts.debug -- cgit v1.2.3-70-g09d2