pactest: run with root in /tmp and clean up automatically
commitd360153bc6d4368e18a6d2e169d7d667e1640992
authorDan McGee <dan@archlinux.org>
Thu, 5 May 2011 16:10:44 +0000 (5 11:10 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 5 May 2011 16:12:26 +0000 (5 11:12 -0500)
tree32d4e5144426d6bfe95386eb1e157538f3050712
parent47de7973fd501e5253386c50178ec47e9f4c4c8e
pactest: run with root in /tmp and clean up automatically

This moves the generated root/ directory into /tmp, or at least a path
returned by tempfile.mkdtemp(), by default. This can make test runs
significantly faster if done when /tmp is a tmpfs.

If you are debugging a failed test, use the new --keep-root option to
not clean up and pactest will print the location of the generated root/
test directory.

Signed-off-by: Dan McGee <dan@archlinux.org>
Makefile.am
test/pacman/pactest.py