From 090ea289429c86e7a6f256ccb582d70d32d04013 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 3 Feb 2012 10:59:14 -0600 Subject: pactest: check return code in some upgrade tests Signed-off-by: Dan McGee --- test/pacman/tests/upgrade001.py | 1 + test/pacman/tests/upgrade002.py | 1 + test/pacman/tests/upgrade003.py | 1 + test/pacman/tests/upgrade004.py | 1 + 4 files changed, 4 insertions(+) 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) -- cgit v1.2.3-70-g09d2