summaryrefslogtreecommitdiff
path: root/test/pacman/pmenv.py
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-10-06 03:01:40 -0400
committerAllan McRae <allan@archlinux.org>2014-10-13 12:54:29 +1000
commit42c859e4cc38f91a1236cd93eae9e9f9a1bc1e62 (patch)
tree23ddd2d78b3fbe4ce2cfed46e7c47f6c9acb91ec /test/pacman/pmenv.py
parent01beca5df717252c7c9aa59bc705dc10a25ebdc8 (diff)
pmtest: allow tests to specify test binary
Adds a cmd property to tests (defaults to pacman) which is resolved using directories specified with --bindir (defaults to PATH). The ability to manually specify a particular binary is preserved in order to allow running individual tests with differently named binaries such as lt-pacman. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/pmenv.py')
-rw-r--r--test/pacman/pmenv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pacman/pmenv.py b/test/pacman/pmenv.py
index 2d887b01..27f44c90 100644
--- a/test/pacman/pmenv.py
+++ b/test/pacman/pmenv.py
@@ -34,7 +34,8 @@ class pmenv(object):
def __init__(self, root = "root"):
self.root = os.path.abspath(root)
self.pacman = {
- "bin": "pacman",
+ "bin": None,
+ "bindir": ["/usr/bin/"],
"debug": 0,
"gdb": 0,
"valgrind": 0,