[pacman-dev] [PATCH 2/2] pactest: add prefix to temporary directory
Andrew Gregory
andrew.gregory.8 at gmail.com
Fri Feb 28 10:13:34 EST 2014
This makes cleaning up /tmp after several --keep-root runs much easier.
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
test/pacman/pactest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/pacman/pactest.py b/test/pacman/pactest.py
index fe14671..d80076e 100755
--- a/test/pacman/pactest.py
+++ b/test/pacman/pactest.py
@@ -84,7 +84,7 @@ def create_parser():
sys.exit(1)
# instantiate env and parser objects
- root_path = tempfile.mkdtemp()
+ root_path = tempfile.mkdtemp(prefix='pactest-')
env = pmenv.pmenv(root=root_path)
opt_parser = create_parser()
(opts, args) = opt_parser.parse_args()
--
1.9.0
More information about the pacman-dev
mailing list