[pacman-dev] [PATCH v3 3/3] [pactest] Remove conditional checks for fakechroot from test files

Chirantan Ekbote chirantan.ekbote at gmail.com
Thu Jan 31 22:24:23 EST 2013


We don't want test files to do any checks for fakechroot since we will
print a warning if it is not found. 

Signed-off-by: Chirantan Ekbote <chirantan.ekbote at gmail.com>
---
 test/pacman/tests/scriptlet001.py | 4 ----
 test/pacman/tests/scriptlet002.py | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/test/pacman/tests/scriptlet001.py b/test/pacman/tests/scriptlet001.py
index 6f702eb..a8350b1 100644
--- a/test/pacman/tests/scriptlet001.py
+++ b/test/pacman/tests/scriptlet001.py
@@ -11,7 +11,3 @@
 self.addrule("PACMAN_RETCODE=0")
 self.addrule("FILE_EXIST=pre_install")
 self.addrule("FILE_EXIST=post_install")
-
-fakechroot = util.which("fakechroot")
-if not fakechroot:
-	self.expectfailure = True
diff --git a/test/pacman/tests/scriptlet002.py b/test/pacman/tests/scriptlet002.py
index 907f419..7d58d03 100644
--- a/test/pacman/tests/scriptlet002.py
+++ b/test/pacman/tests/scriptlet002.py
@@ -11,7 +11,3 @@
 self.addrule("PACMAN_RETCODE=0")
 self.addrule("FILE_EXIST=pre_remove")
 self.addrule("FILE_EXIST=post_remove")
-
-fakechroot = util.which("fakechroot")
-if not fakechroot:
-	self.expectfailure = True
-- 
1.8.1.2



More information about the pacman-dev mailing list