summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/pacman/pactest.py8
1 files changed, 5 insertions, 3 deletions
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