1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 14:41:43 +00:00

move benchmark cmd tests to own module

This commit is contained in:
Thomas Waldmann 2022-09-12 23:45:11 +02:00
parent cc79c98b98
commit 245bdef4eb
2 changed files with 9 additions and 5 deletions

View file

@ -1990,11 +1990,6 @@ def test_bad_filters(self):
self.cmd(f"--repo={self.repository_location}", "create", "test", "input")
self.cmd(f"--repo={self.repository_location}", "delete", "--first", "1", "--last", "1", fork=True, exit_code=2)
def test_benchmark_crud(self):
self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
with environment_variable(_BORG_BENCHMARK_CRUD_TEST="YES"):
self.cmd(f"--repo={self.repository_location}", "benchmark", "crud", self.input_path)
def test_config(self):
self.create_test_files()
os.unlink("input/flagfile")

View file

@ -0,0 +1,9 @@
from ...constants import * # NOQA
from . import ArchiverTestCaseBase, RK_ENCRYPTION, environment_variable
class ArchiverTestCase(ArchiverTestCaseBase):
def test_benchmark_crud(self):
self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
with environment_variable(_BORG_BENCHMARK_CRUD_TEST="YES"):
self.cmd(f"--repo={self.repository_location}", "benchmark", "crud", self.input_path)