Explorar o código

fix tests: umask is not defined in the repo yet

Antoine Beaupré %!s(int64=9) %!d(string=hai) anos
pai
achega
e59f1d50d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      borg/testsuite/upgrader.py

+ 1 - 1
borg/testsuite/upgrader.py

@@ -166,7 +166,7 @@ def test_convert_all(tmpdir, attic_repo, attic_key_file, inplace):
     orig_inode = first_inode(attic_repo.path)
     repo = AtticRepositoryUpgrader(str(tmpdir), create=False)
     # replicate command dispatch, partly
-    os.umask(attic_repo.umask)
+    os.umask(RemoteRepository.umask)
     backup = repo.upgrade(dryrun=False, inplace=inplace)
     if inplace:
         assert backup is None