Parcourir la source

tests: repo-space, save space on TMPDIR

Thomas Waldmann il y a 2 semaines
Parent
commit
ba3eb06f74
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/borg/testsuite/archiver/repo_space_cmd_test.py

+ 4 - 0
src/borg/testsuite/archiver/repo_space_cmd_test.py

@@ -54,6 +54,8 @@ def test_repo_space_modify_reservation(archivers, request):
 
 
     # note: --reserve can only INCREASE the amount of reserved space.
     # note: --reserve can only INCREASE the amount of reserved space.
 
 
+    cmd(archiver, "repo-space", "--free")  # save space on TMPDIR
+
 
 
 def test_repo_space_edge_cases(archivers, request):
 def test_repo_space_edge_cases(archivers, request):
     archiver = request.getfixturevalue(archivers)
     archiver = request.getfixturevalue(archivers)
@@ -78,3 +80,5 @@ def test_repo_space_edge_cases(archivers, request):
     # Check that space is reserved (should be 64MiB).
     # Check that space is reserved (should be 64MiB).
     output = cmd(archiver, "repo-space")
     output = cmd(archiver, "repo-space")
     assert "There is 67.11 MB reserved space in this repository." in output
     assert "There is 67.11 MB reserved space in this repository." in output
+
+    cmd(archiver, "repo-space", "--free")  # save space on TMPDIR