diff options
Diffstat (limited to 'test/pacman/tests/clean003.py')
-rw-r--r-- | test/pacman/tests/clean003.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/pacman/tests/clean003.py b/test/pacman/tests/clean003.py new file mode 100644 index 00000000..0d3f451f --- /dev/null +++ b/test/pacman/tests/clean003.py @@ -0,0 +1,16 @@ +self.description = "CleanMethod = KeepInstalled with IgnorePkg (FS#22653)" + +sp = pmpkg("dummy", "2.0-1") +self.addpkg2db("sync", sp) + +lp = pmpkg("dummy", "1.0-1") +self.addpkg2db("local", lp) + +self.args = "-Sc" +self.option['CleanMethod'] = ['KeepInstalled'] +self.option['IgnorePkg'] = ['dummy'] +self.createlocalpkgs = True + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!CACHE_EXISTS=dummy|2.0-1") +self.addrule("CACHE_EXISTS=dummy|1.0-1") |