pactest: add prefix to temporary directory

This makes cleaning up /tmp after several --keep-root runs much easier.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2014-02-28 10:13:34 -05:00 committed by Allan McRae
parent 0b0fe51a2c
commit 0475b2501a
1 changed files with 1 additions and 1 deletions

View File

@ -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()