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:
parent
cc79c98b98
commit
245bdef4eb
2 changed files with 9 additions and 5 deletions
|
@ -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")
|
||||
|
|
9
src/borg/testsuite/archiver/benchmark_cmd.py
Normal file
9
src/borg/testsuite/archiver/benchmark_cmd.py
Normal 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)
|
Loading…
Reference in a new issue