From a9cbd15260b396c38b7d5ffe5669994e65f9a86f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 3 Jan 2011 18:32:43 -0600 Subject: pactest: correctly write epoch and force as necessary We were missing this in a few places; also add the ability to check the outcome via a new rule type. Signed-off-by: Dan McGee --- test/pacman/pmrule.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/pacman/pmrule.py') diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index 89ae3f49..bea8e4a4 100755 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -78,6 +78,9 @@ class pmrule: elif case == "VERSION": if value != newpkg.version: success = 0 + elif case == "EPOCH": + if int(value) != newpkg.epoch: + success = 0 elif case == "DESC": if value != newpkg.desc: success = 0 -- cgit v1.2.3