From: Artem Bityutskiy Date: Wed, 28 Nov 2012 09:26:39 +0000 (+0200) Subject: test_fiemap: increase maximum file size to 16MiB X-Git-Tag: v1.0~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68ee86011cdb96083ff7ebefa143ff58ceae4aea;p=tools%2Fbmap-tools.git 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 --- 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)