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:
parent
0b0fe51a2c
commit
0475b2501a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue