From 80d3709e65e9ee778f6a26235516b990290b49e0 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 26 Apr 2014 19:22:25 -0400 Subject: pmdb.py: change siglevel name to Required "Always" is not a valid siglevel. sign002.py was succeeding because pacman failed to parse the resulting config file rather than a failed signature check. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- test/pacman/pmdb.py | 2 +- test/pacman/tests/sign002.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index 1d9d7359..a6cf78fc 100644 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -69,7 +69,7 @@ class pmdb(object): return "%s" % self.treename def getverify(self): - for value in ("Always", "Never", "Optional"): + for value in ("Required", "Never", "Optional"): if value in self.treename: return value return "Never" diff --git a/test/pacman/tests/sign002.py b/test/pacman/tests/sign002.py index b55f331e..58c44412 100644 --- a/test/pacman/tests/sign002.py +++ b/test/pacman/tests/sign002.py @@ -2,7 +2,7 @@ self.description = "Verify a signature in a sync DB (failure)" sp = pmpkg("pkg1") sp.pgpsig = "iEYEABECAAYFAkhMOggACgkQXC5GoPU6du2WVQCffVxF8GKXJIY4juJBIw/ljLrQxygAnj2QlvsUd7MdFekLX18+Ov/xzgZ1" -self.addpkg2db("sync+Always", sp) +self.addpkg2db("sync+Required", sp) self.args = "-S %s" % sp.name -- cgit v1.2.3-70-g09d2