diff options
author | Allan McRae <allan@archlinux.org> | 2012-09-20 23:09:29 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-17 22:32:54 +1000 |
commit | 4a8c2852a887d2b1aaa43be3071ab586eb24b9e3 (patch) | |
tree | 13bd705ab4b7c139d1cc378f7c7c5fe715483402 /test/pacman/pmenv.py | |
parent | 993700bc6b12cd291544d2a22845f480e8a7925e (diff) |
pmtest: resolve path to scriptlet shell
In order to support a variety of values for the --with-scriptlet-shell
configure flag, pmtest has to be aware of what kind of path was passed,
be it an absolute path or a fragment for a path lookup. For absolute
paths, leave the path alone. For fragments, search the PATH environment
var for the resolved path to the binary. In both cases, join the
resultant path to the root directory defined for the test, not a
pre-determined bin directory.
Fixes FS#31552.
With-contribution-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/pmenv.py')
-rw-r--r-- | test/pacman/pmenv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/pmenv.py b/test/pacman/pmenv.py index 0e455cee..04948c12 100644 --- a/test/pacman/pmenv.py +++ b/test/pacman/pmenv.py @@ -66,7 +66,7 @@ class pmenv(object): print t.description print "----------"*8 - t.generate() + t.generate(self.pacman) t.run(self.pacman) |