summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/selectiontest.py
diff options
context:
space:
mode:
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")