From 037d54e4421867ff8242f11984f9c29fd300f5df Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Fri, 18 Mar 2016 02:58:29 +0100 Subject: [PATCH] ArchiverTestCase, test_symlink_extract --- borg/testsuite/archiver.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 1b89515c5..ddd0c5f66 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -353,6 +353,14 @@ class ArchiverTestCase(ArchiverTestCaseBase): # the interesting parts of info_output2 and info_output should be same self.assert_equal(filter(info_output), filter(info_output2)) + def test_symlink_extract(self): + self.create_test_files() + self.cmd('init', self.repository_location) + self.cmd('create', self.repository_location + '::test', 'input') + with changedir('output'): + self.cmd('extract', self.repository_location + '::test') + assert os.readlink('input/link1') == 'somewhere' + def test_atime(self): self.create_test_files() atime, mtime = 123456780, 234567890