Merge lp:~aaron-whitehouse/duplicity/progress_option_error into lp:~duplicity-team/duplicity/0.7-series

Proposed by Aaron Whitehouse
Status: Merged
Merged at revision: 1052
Proposed branch: lp:~aaron-whitehouse/duplicity/progress_option_error
Merge into: lp:~duplicity-team/duplicity/0.7-series
Diff against target: 45 lines (+35/-0)
1 file modified
testing/functional/test_selection.py (+35/-0)
To merge this branch: bzr merge lp:~aaron-whitehouse/duplicity/progress_option_error
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+246242@code.launchpad.net

Description of the change

Added test_exclude_globbing_filelist_progress_option into functional/test_selection.py, which shows the error reported in Bug #1264744 - that the --exclude-globbing-filelist does not backup the correct files if the --progress option is used. Test is marked as an expected failure so as not to cause the test suite to fail.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'testing/functional/test_selection.py'
2--- testing/functional/test_selection.py 2015-01-08 13:09:23 +0000
3+++ testing/functional/test_selection.py 2015-01-13 01:27:20 +0000
4@@ -343,6 +343,41 @@
5 restored = self.directory_tree_to_list_of_lists(restore_dir)
6 self.assertEqual(restored, self.expected_restored_tree_with_trailing_space)
7
8+ @unittest.expectedFailure
9+ def test_exclude_globbing_filelist_progress_option(self):
10+ """Test that exclude globbing filelist is unaffected by the --progress option"""
11+ # ToDo - currently fails. Bug #1264744 (https://bugs.launchpad.net/duplicity/+bug/1264744)
12+ # Create a filelist identical to that used in test_exclude_globbing_filelist
13+ with open('testfiles/exclude.txt', 'w') as f:
14+ f.write('+ testfiles/select2/3/3sub3/3sub3sub2/3sub3sub2_file.txt\n'
15+ 'testfiles/select2/3/3sub3/3sub3sub2\n'
16+ '+ testfiles/select2/3/3sub2/3sub2sub2\n'
17+ '+ testfiles/select2/3/3sub3\n'
18+ '- testfiles/select2/3/3sub1\n' # - added to ensure it makes no difference
19+ 'testfiles/select2/2/2sub1/2sub1sub3\n'
20+ 'testfiles/select2/2/2sub1/2sub1sub2\n'
21+ '+ testfiles/select2/2/2sub1\n'
22+ 'testfiles/select2/1/1sub3/1sub3sub2\n'
23+ 'testfiles/select2/1/1sub3/1sub3sub1\n'
24+ 'testfiles/select2/1/1sub2/1sub2sub3\n'
25+ '+ testfiles/select2/1/1sub2/1sub2sub1\n'
26+ 'testfiles/select2/1/1sub1/1sub1sub3/1sub1sub3_file.txt\n'
27+ 'testfiles/select2/1/1sub1/1sub1sub2\n'
28+ '- testfiles/select2/1/1sub2\n' # - added to ensure it makes no difference
29+ '+ testfiles/select2/1.py\n'
30+ '+ testfiles/select2/3\n'
31+ '+ testfiles/select2/1\n'
32+ 'testfiles/select2/**')
33+
34+ # Backup the files exactly as in test_exclude_globbing_filelist, but with the --progress option
35+ self.backup("full", "testfiles/select2", options=["--exclude-globbing-filelist=testfiles/exclude.txt",
36+ "--progress"])
37+ self.restore()
38+ restore_dir = 'testfiles/restore_out'
39+ restored = self.directory_tree_to_list_of_lists(restore_dir)
40+ # The restored files should match those restored in test_exclude_globbing_filelist
41+ self.assertEqual(restored, self.expected_restored_tree)
42+
43 class TestIncludeGlobbingFilelistTest(IncludeExcludeFunctionalTest):
44 """
45 Test --include-globbing-filelist using duplicity binary.

Subscribers

People subscribed via source and target branches