From 42c859e4cc38f91a1236cd93eae9e9f9a1bc1e62 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 6 Oct 2014 03:01:40 -0400 Subject: 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 Signed-off-by: Allan McRae --- test/pacman/pmenv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/pacman/pmenv.py') 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, -- cgit v1.2.3