Fixed test_create_diff_backup1
authorDaniel Garcia Moreno <danigm@wadobo.com>
Fri, 23 Aug 2013 16:21:19 +0000 (18:21 +0200)
committerDaniel Garcia Moreno <danigm@wadobo.com>
Fri, 23 Aug 2013 16:21:19 +0000 (18:21 +0200)
testing/test_deltatar.py

index 398540c..61a750c 100644 (file)
@@ -935,7 +935,8 @@ class DeltaTarTest(BaseTest):
         # restore the backup, this will create only the new files
         deltatar.restore_backup(target_path="source_dir",
                                 backup_tar_path=tar_path)
-        assert os.listdir("source_dir") == ['zzzz', 'bigdir']
+        # the order doesn't matter
+        assert set(os.listdir("source_dir")) == set(['zzzz', 'bigdir'])
 
     def test_restore_from_index_diff_backup(self):
         '''