pactest: add test for empty replacements strings

This commit is contained in:
KaranveerB 2024-08-03 16:10:56 -07:00
parent 4c18204938
commit 6ba5c20e76
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -127,6 +127,7 @@ pacman_tests = [
'tests/remove-assumeinstalled.py',
'tests/remove-directory-replaced-with-symlink.py',
'tests/remove-optdepend-of-installed-package.py',
'tests/remove-print-empty-replacements.py',
'tests/remove-recursive-cycle.py',
'tests/remove001.py',
'tests/remove002.py',

View File

@ -0,0 +1,9 @@
self.description = "Print empty replacements when using -Rp"
p = pmpkg("a")
self.addpkg2db("local", p)
self.args = "-Rp --print-format 'foo%%f%%g%%h%%m' %s" % p.name
self.addrule("PACMAN_RETCODE=0")
self.addrule("PACMAN_OUTPUT=^foo$")