Jelajahi Sumber

fix archiver test to not expect backup of the UF_NODUMP file

Thomas Waldmann 9 tahun lalu
induk
melakukan
0481424128
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      borg/testsuite/archiver.py

+ 2 - 1
borg/testsuite/archiver.py

@@ -187,7 +187,8 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         with changedir('output'):
             self.cmd('extract', self.repository_location + '::test')
         self.assert_equal(len(self.cmd('list', self.repository_location).splitlines()), 2)
-        self.assert_equal(len(self.cmd('list', self.repository_location + '::test').splitlines()), 11)
+        file_count = 10 if has_lchflags else 11  # one file is UF_NODUMP
+        self.assert_equal(len(self.cmd('list', self.repository_location + '::test').splitlines()), file_count)
         self.assert_dirs_equal('input', 'output/input')
         info_output = self.cmd('info', self.repository_location + '::test')
         self.assert_in('Number of files: 4', info_output)