1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

benchmark tests: improve comments

This commit is contained in:
Thomas Waldmann 2015-10-14 01:00:25 +02:00
parent f8b536890b
commit 7efab2f254

View file

@ -13,6 +13,7 @@
from .archiver import changedir, exec_cmd
# TODO: use fixture params to test python code and binary
@pytest.fixture
def cmd():
return exec_cmd
@ -41,7 +42,7 @@ def testdata(request, tmpdir_factory):
p = tmpdir_factory.mktemp('data')
data_type = request.param
if data_type == 'zeros':
# note: do not use a binary zero (\0) to avoid sparse detection
# do not use a binary zero (\0) to avoid sparse detection
data = lambda: b'0' * size
if data_type == 'random':
rnd = open('/dev/urandom', 'rb')