1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Mon, 9 Mar 2026 12:23:54 +0100
Subject: tests: Use correct mkfs and info function in ExtGetInfo
We were calling ext4 functions for all ext tests.
---
tests/fs_tests/ext_test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/fs_tests/ext_test.py b/tests/fs_tests/ext_test.py
index 0359765..790f692 100644
--- a/tests/fs_tests/ext_test.py
+++ b/tests/fs_tests/ext_test.py
@@ -236,10 +236,10 @@ class ExtTestRepair(ExtTestCase):
class ExtGetInfo(ExtTestCase):
def _test_ext_get_info(self, mkfs_function, info_function):
- succ = BlockDev.fs_ext4_mkfs(self.loop_devs[0], None)
+ succ = mkfs_function(self.loop_devs[0])
self.assertTrue(succ)
- fi = BlockDev.fs_ext4_get_info(self.loop_devs[0])
+ fi = info_function(self.loop_devs[0])
self.assertTrue(fi)
self.assertEqual(fi.block_size, 1024)
self.assertEqual(fi.block_count, self.loop_size / 1024)
|