Signed-off-by: Andrew Gregory
---
test/pacman/pactest.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py
index 0e06f17..b2b9c28 100755
--- a/test/pacman/pactest.py
+++ b/test/pacman/pactest.py
@@ -82,12 +82,14 @@ def create_parser():
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
--
2.0.1