testsuite: remove deprecated manual cleanup in create_cmd_test

This commit is contained in:
Aiman 2026-02-11 16:10:21 +05:30
parent b802cfd496
commit e19a2213a3

View file

@ -962,10 +962,6 @@ def test_create_big_zeros_files(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"zeros_{i}"))
def test_create_big_random_files(archivers, request):
"""Test creating an archive from 10 files with 10MB random data each."""
@ -998,10 +994,6 @@ def test_create_big_random_files(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"random_{i}"))
def test_create_with_compression_algorithms(archivers, request):
"""Test creating archives with different compression algorithms."""
@ -1064,11 +1056,6 @@ def test_create_with_compression_algorithms(archivers, request):
# Also verify the directory structure matches
assert_dirs_equal(archiver.input_path, os.path.join(extract_path, "input"))
# Remove input files
for i in range(count):
os.unlink(os.path.join(archiver.input_path, f"zeros_{i}"))
os.unlink(os.path.join(archiver.input_path, f"random_{i}"))
def test_exclude_nodump_dir_with_file(archivers, request):
"""A directory flagged NODUMP and its contents must not be archived."""