From 73886504d7fa62e8cb49631fb13b53ea69919a3f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 11 Oct 2010 17:39:41 -0500 Subject: Add several pactests for epoch code Signed-off-by: Dan McGee --- test/pacman/tests/sync142.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/pacman/tests/sync142.py (limited to 'test/pacman/tests/sync142.py') diff --git a/test/pacman/tests/sync142.py b/test/pacman/tests/sync142.py new file mode 100644 index 00000000..83766bb8 --- /dev/null +++ b/test/pacman/tests/sync142.py @@ -0,0 +1,14 @@ +self.description = "Sysupgrade with an epoch package overriding a force package" + +sp = pmpkg("dummy", "1.4-1") +sp.epoch = 2 +self.addpkg2db("sync", sp) + +lp = pmpkg("dummy", "2.0-1") +lp.force = 1 +self.addpkg2db("local", lp) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_VERSION=dummy|1.4-1") -- cgit v1.2.3-70-g09d2