diff options
author | Dan McGee <dan@archlinux.org> | 2012-02-03 17:59:14 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-03 17:59:14 +0100 |
commit | 090ea289429c86e7a6f256ccb582d70d32d04013 (patch) | |
tree | b5f573bf067dc237879f30c935b92a34f9e29fa9 | |
parent | e01fdc3dba36336bf4acbbf5ea1e3f7ac9c6fb6a (diff) | |
download | pacman-090ea289429c86e7a6f256ccb582d70d32d04013.tar.gz pacman-090ea289429c86e7a6f256ccb582d70d32d04013.tar.xz |
pactest: check return code in some upgrade tests
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | test/pacman/tests/upgrade001.py | 1 | ||||
-rw-r--r-- | test/pacman/tests/upgrade002.py | 1 | ||||
-rw-r--r-- | test/pacman/tests/upgrade003.py | 1 | ||||
-rw-r--r-- | test/pacman/tests/upgrade004.py | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/test/pacman/tests/upgrade001.py b/test/pacman/tests/upgrade001.py index 2e85ce67..73fd6727 100644 --- a/test/pacman/tests/upgrade001.py +++ b/test/pacman/tests/upgrade001.py @@ -12,6 +12,7 @@ self.addpkg(p) self.args = "-U %s" % p.filename() +self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-2") for f in lp.files: self.addrule("FILE_MODIFIED=%s" % f) diff --git a/test/pacman/tests/upgrade002.py b/test/pacman/tests/upgrade002.py index c7706efe..310cde6e 100644 --- a/test/pacman/tests/upgrade002.py +++ b/test/pacman/tests/upgrade002.py @@ -12,6 +12,7 @@ self.addpkg(p) self.args = "-U %s" % p.filename() +self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-1") for f in lp.files: self.addrule("FILE_MODIFIED=%s" % f) diff --git a/test/pacman/tests/upgrade003.py b/test/pacman/tests/upgrade003.py index 284c9f35..193f0413 100644 --- a/test/pacman/tests/upgrade003.py +++ b/test/pacman/tests/upgrade003.py @@ -12,6 +12,7 @@ self.addpkg(p) self.args = "-U %s" % p.filename() +self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-1") for f in lp.files: self.addrule("FILE_MODIFIED=%s" % f) diff --git a/test/pacman/tests/upgrade004.py b/test/pacman/tests/upgrade004.py index 31daf915..6a4cdf07 100644 --- a/test/pacman/tests/upgrade004.py +++ b/test/pacman/tests/upgrade004.py @@ -7,6 +7,7 @@ self.addpkg(p) self.args = "-U %s" % p.filename() +self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=dummy") for f in p.files: self.addrule("FILE_EXIST=%s" % f) |