Merge pull request #9730 from ThomasWaldmann/reduce-tmp-usage-master
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run

tests: reduce /tmp space usage
This commit is contained in:
TW 2026-06-07 21:59:50 +02:00 committed by GitHub
commit 83c3bc8a67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1080,10 +1080,9 @@ def test_create_big_zeros_files(archivers, request):
def test_create_big_random_files(archivers, request):
"""Test creating an archive from 10 files with 10MB random data each."""
"""Test creating an archive with some big files with random data."""
archiver = request.getfixturevalue(archivers)
# Create 10 files with 10,000,000 bytes of random data each
count, size = 10, 10 * 1000 * 1000
count, size = 5, 5 * 1000 * 1000
random_data = {}
for i in range(count):
data = os.urandom(size)