test_fiemap: increase maximum file size to 16MiB
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 28 Nov 2012 09:26:39 +0000 (11:26 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Wed, 28 Nov 2012 09:26:39 +0000 (11:26 +0200)
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 <artem.bityutskiy@intel.com>
tests/test_fiemap.py

index 702a6ee..ba69ae7 100644 (file)
@@ -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)