From 68ee86011cdb96083ff7ebefa143ff58ceae4aea Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 28 Nov 2012 11:26:39 +0200 Subject: [PATCH] test_fiemap: increase maximum file size to 16MiB The default 4MiB are probably too few because the internal ext4 extent size seems to be 2MiB, so 4MiB are just 2 extents. Change-Id: If40f0ad70c6787659a01ebc6473ed4189069d81e Signed-off-by: Artem Bityutskiy --- tests/test_fiemap.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_fiemap.py b/tests/test_fiemap.py index 702a6ee..ba69ae7 100644 --- a/tests/test_fiemap.py +++ b/tests/test_fiemap.py @@ -65,8 +65,10 @@ class TestCreateCopy(unittest.TestCase): # Create all the test-related temporary files in the default directory # (usually /tmp). directory = None + # Maximum size of the random files used in this test + max_size = 16 * 1024 * 1024 - iterator = tests.helpers.generate_test_files(delete = delete, - directory = directory) + iterator = tests.helpers.generate_test_files(max_size, directory, + delete) for f_image, mapped, holes in iterator: _do_test(f_image, mapped, holes) -- 2.7.4