summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/overwrite-files-nonmatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/tests/overwrite-files-nonmatch.py')
-rw-r--r--test/pacman/tests/overwrite-files-nonmatch.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pacman/tests/overwrite-files-nonmatch.py b/test/pacman/tests/overwrite-files-nonmatch.py
new file mode 100644
index 00000000..38932d5f
--- /dev/null
+++ b/test/pacman/tests/overwrite-files-nonmatch.py
@@ -0,0 +1,13 @@
+self.description = "Install a package with an existing file not matching --overwrite patterns"
+
+p = pmpkg("dummy")
+p.files = ["foobar"]
+self.addpkg(p)
+
+self.filesystem = ["foobar*"]
+
+self.args = "-U --overwrite=foo %s" % p.filename()
+
+self.addrule("!PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=dummy")
+self.addrule("!FILE_MODIFIED=foobar")