test: use truncate in mk_fs()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 6 Mar 2025 17:46:59 +0000 (18:46 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 30 Mar 2025 15:13:34 +0000 (09:13 -0600)
commitf94a05d1c4191c587f3abd259dceb4bb99b1b639
treedacf38e65ca459722f25b3dc26d9c3be503ec79b
parentf1895bc1e71c18fb872e2fec40ff2310d6b4a0bb
test: use truncate in mk_fs()

While the dd command actually writes to the block device the truncate
command only updates the metadata (at least on ext4). This is faster and
reduces wear on the block device.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/py/tests/fs_helper.py