summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-27 11:19:05 -0500
committerDan McGee <dan@archlinux.org>2010-08-27 11:19:05 -0500
commitd14a98db25c3dd1843510a1608064dda913ea230 (patch)
treef95a1463046570b2a39697117024213db8d0cb43 /test
parenta8dcfeccfcd0fc78554e6dad7ae07d53034363e1 (diff)
parent90c45f7bbe6811a2f32ef81e57bce8237d491e9f (diff)
downloadpacman-d14a98db25c3dd1843510a1608064dda913ea230.tar.xz
Merge branch 'maint'
Diffstat (limited to 'test')
-rwxr-xr-xtest/pacman/pmtest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py
index b1d778e1..5c8881c8 100755
--- a/test/pacman/pmtest.py
+++ b/test/pacman/pmtest.py
@@ -110,10 +110,13 @@ class pmtest:
tmpdir = os.path.join(self.root, TMPDIR)
logdir = os.path.join(self.root, os.path.dirname(LOGFILE))
etcdir = os.path.join(self.root, os.path.dirname(PACCONF))
- for dir in [dbdir, cachedir, syncdir, tmpdir, logdir, etcdir]:
+ bindir = os.path.join(self.root, "bin")
+ for dir in [dbdir, cachedir, syncdir, tmpdir, logdir, etcdir, bindir]:
if not os.path.isdir(dir):
vprint("\t%s" % dir[len(self.root)+1:])
os.makedirs(dir, 0755)
+ # Only the dynamically linked binary is needed for fakechroot
+ shutil.copy("/bin/sh", bindir)
# Configuration file
vprint(" Creating configuration file")