summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pacman/pmtest.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py
index 5a79919e..49919718 100644
--- a/test/pacman/pmtest.py
+++ b/test/pacman/pmtest.py
@@ -40,10 +40,10 @@ class pmtest(object):
self.dbver = 9
self.cachepkgs = True
self.cmd = ["pacman", "--noconfirm",
- "--config", os.path.join(self.root, util.PACCONF),
- "--root", self.root,
- "--dbpath", os.path.join(self.root, util.PM_DBPATH),
- "--cachedir", os.path.join(self.root, util.PM_CACHEDIR)]
+ "--config", self.configfile(),
+ "--root", self.rootdir(),
+ "--dbpath", self.dbdir(),
+ "--cachedir", self.cachedir()]
def __str__(self):
return "name = %s\n" \
@@ -294,4 +294,16 @@ class pmtest(object):
self.result["fail"] += 1
tap.ok(success, i)
+ def configfile(self):
+ return os.path.join(self.root, util.PACCONF)
+
+ def dbdir(self):
+ return os.path.join(self.root, util.PM_DBPATH)
+
+ def rootdir(self):
+ return self.root + '/'
+
+ def cachedir(self):
+ return os.path.join(self.root, util.PM_CACHEDIR)
+
# vim: set ts=4 sw=4 et: