summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/selectiontest.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-08-09 06:05:17 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-08-09 06:05:17 +0000
commit5606c8f93acbd8daeb97d2ea702b2f9096a067a2 (patch)
treeb9ffd5095ae40142eef3896a58a0df2397111807 /rdiff-backup/testing/selectiontest.py
parent2c3750ff27e9c4e145a489c4fe60b27afa8b90a6 (diff)
downloadrdiff-backup-5606c8f93acbd8daeb97d2ea702b2f9096a067a2.tar.gz
Backport for selection bugfix/addition reported by Daniel Richard G.r0-12
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@603 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/selectiontest.py')
-rw-r--r--rdiff-backup/testing/selectiontest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/rdiff-backup/testing/selectiontest.py b/rdiff-backup/testing/selectiontest.py
index 2e0cd78..6536e0b 100644
--- a/rdiff-backup/testing/selectiontest.py
+++ b/rdiff-backup/testing/selectiontest.py
@@ -405,6 +405,14 @@ testfiles/select**/2
("--exclude", "**")],
[(), ('1',), ('1', '1'), ('1', '2')])
+ def testGlob3(self):
+ """Test for bug when **is in front"""
+ self.ParseTest([("--include", "**NOTEXIST"),
+ ("--exclude", "**NOTEXISTEITHER"),
+ ("--include", "testfiles/select/efools"),
+ ("--exclude", "**")],
+ [(), ('efools',), ('efools', 'ping')])
+
def testAlternateRoot(self):
"""Test select with different root"""
self.root = rpath.RPath(Globals.local_connection, "testfiles/select/1")