summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync101.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-26 22:54:36 -0500
committerDan McGee <dan@archlinux.org>2011-01-22 11:19:17 -0600
commit5699f2c94c39afec19810fc450b78dced86e7c5d (patch)
tree1260860e9d199f78855aada5a479593cf3edce5b /test/pacman/tests/sync101.py
parent2a3b5e40bc92bf3c4f32c27c4030d80f97a5dee1 (diff)
downloadpacman-5699f2c94c39afec19810fc450b78dced86e7c5d.tar.xz
Modify all pactests to not use PKG_MODIFIED
All conditions that this particular rule tested are better served by using a more specific rule, whether that be checking a package version or whether files inside the package have changed or still exist. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/sync101.py')
-rw-r--r--test/pacman/tests/sync101.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pacman/tests/sync101.py b/test/pacman/tests/sync101.py
index 5d39ecb9..a4bde3e2 100644
--- a/test/pacman/tests/sync101.py
+++ b/test/pacman/tests/sync101.py
@@ -1,7 +1,9 @@
self.description = "Sysupgrade with same version for local and sync packages"
sp = pmpkg("dummy")
+sp.files = ["bin/foo"]
lp = pmpkg("dummy")
+lp.files = ["bin/foo"]
self.addpkg2db("sync", sp)
self.addpkg2db("local", lp)
@@ -9,4 +11,5 @@ self.addpkg2db("local", lp)
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
-self.addrule("!PKG_MODIFIED=dummy")
+self.addrule("PKG_VERSION=dummy|1.0-1")
+self.addrule("!FILE_MODIFIED=bin/foo")