From e3d8197d67336b6e59ee184762271cf64431aca6 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 20 Jan 2013 21:36:20 +1000 Subject: Remove leading / for pactest paths The leading / makes the pactest suite look for the file in the users filesystem. This meant the ldconfig tests always passed (even when broken in pacman...). Signed-off-by: Allan McRae --- test/pacman/tests/ldconfig001.py | 2 +- test/pacman/tests/ldconfig002.py | 2 +- test/pacman/tests/ldconfig003.py | 2 +- test/pacman/tests/sync700.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/pacman/tests/ldconfig001.py b/test/pacman/tests/ldconfig001.py index a264326d..a97f28c1 100644 --- a/test/pacman/tests/ldconfig001.py +++ b/test/pacman/tests/ldconfig001.py @@ -6,4 +6,4 @@ self.addpkg(p) self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETCODE=0") -self.addrule("FILE_EXIST=/etc/ld.so.cache") +self.addrule("FILE_EXIST=etc/ld.so.cache") diff --git a/test/pacman/tests/ldconfig002.py b/test/pacman/tests/ldconfig002.py index 2628dc7a..07f2ec69 100644 --- a/test/pacman/tests/ldconfig002.py +++ b/test/pacman/tests/ldconfig002.py @@ -10,4 +10,4 @@ self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-2") -self.addrule("FILE_EXIST=/etc/ld.so.cache") +self.addrule("FILE_EXIST=etc/ld.so.cache") diff --git a/test/pacman/tests/ldconfig003.py b/test/pacman/tests/ldconfig003.py index 8d1babb7..9b2967e2 100644 --- a/test/pacman/tests/ldconfig003.py +++ b/test/pacman/tests/ldconfig003.py @@ -6,4 +6,4 @@ self.addpkg2db("sync", sp) self.args = "-S %s" % sp.name self.addrule("PACMAN_RETCODE=0") -self.addrule("FILE_EXIST=/etc/ld.so.cache") +self.addrule("FILE_EXIST=etc/ld.so.cache") diff --git a/test/pacman/tests/sync700.py b/test/pacman/tests/sync700.py index 0002b643..9748c819 100644 --- a/test/pacman/tests/sync700.py +++ b/test/pacman/tests/sync700.py @@ -17,6 +17,6 @@ self.args = "-S pkg1" self.addrule("PACMAN_RETCODE=1") self.addrule("PKG_VERSION=pkg1|1.0-1") -self.addrule("FILE_EXIST=/lib/bar") +self.addrule("FILE_EXIST=lib/bar") self.expectfailure = True -- cgit v1.2.3-24-g4f1b