FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-27-2011, 12:35 PM
Allan McRae
 
Default pactest for removing a required empty directory

Signed-off-by: Allan McRae <allan@archlinux.org>
---
test/pacman/tests/remove070.py | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
create mode 100644 test/pacman/tests/remove070.py

diff --git a/test/pacman/tests/remove070.py b/test/pacman/tests/remove070.py
new file mode 100644
index 0000000..e0587e1
--- /dev/null
+++ b/test/pacman/tests/remove070.py
@@ -0,0 +1,21 @@
+self.description = "Remove a package with an empty directory needed by another package"
+
+p1 = pmpkg("pkg1")
+p1.files = ["bin/pkg1", "opt/"]
+
+p2 = pmpkg("pkg2")
+p2.files = ["bin/pkg2", "opt/"]
+
+for p in p1, p2:
+ self.addpkg2db("local", p)
+
+self.args = "-R %s" % p1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=pkg1")
+self.addrule("PKG_EXIST=pkg2")
+self.addrule("!FILE_EXIST=bin/pkg1")
+self.addrule("FILE_EXIST=bin/pkg2")
+self.addrule("FILE_EXIST=opt/")
+
+self.expectfailure = True
--
1.7.4.1
 

Thread Tools




All times are GMT. The time now is 11:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org