[pacman-dev] [PATCH 3/4] Remove leading / for pactest paths

Allan McRae allan at archlinux.org
Sun Jan 20 07:09:19 EST 2013


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 <allan at archlinux.org>
---
 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(-)

diff --git a/test/pacman/tests/ldconfig001.py b/test/pacman/tests/ldconfig001.py
index a264326..a97f28c 100644
--- a/test/pacman/tests/ldconfig001.py
+++ b/test/pacman/tests/ldconfig001.py
@@ -6,4 +6,4 @@
 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 2628dc7..07f2ec6 100644
--- a/test/pacman/tests/ldconfig002.py
+++ b/test/pacman/tests/ldconfig002.py
@@ -10,4 +10,4 @@
 
 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 8d1babb..9b2967e 100644
--- a/test/pacman/tests/ldconfig003.py
+++ b/test/pacman/tests/ldconfig003.py
@@ -6,4 +6,4 @@
 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 0002b64..9748c81 100644
--- a/test/pacman/tests/sync700.py
+++ b/test/pacman/tests/sync700.py
@@ -17,6 +17,6 @@
 
 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
-- 
1.8.1.1



More information about the pacman-dev mailing list