1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-12 17:35:44 +00:00

add test for issue #3688

(cherry picked from commit 0a46d3330c)
This commit is contained in:
Thomas Waldmann 2018-03-17 18:24:55 +01:00
parent 767dccb24c
commit 01beee37a7

View file

@ -3410,6 +3410,7 @@ def test_basic_functionality(self):
# Setup files for the second snapshot
self.create_regular_file('file_added', size=2048)
self.create_regular_file('file_empty_added', size=0)
os.unlink('input/file_removed')
os.unlink('input/file_removed2')
os.unlink('input/file_replaced')
@ -3484,6 +3485,9 @@ def do_asserts(output, can_compare_ids):
if are_hardlinks_supported():
assert 'added 2.05 kB input/hardlink_added' in output
# check if a diff between non-existent and empty new file is found
assert 'added 0 B input/file_empty_added' in output
# The inode has two links and both of them are deleted. They should
# appear as two deleted files.
assert 'removed 256 B input/file_removed' in output