From 72051d42b11be8e16bffb4c33ecf38ca8ddea6b9 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 11 Jul 2024 18:43:41 +0200 Subject: [PATCH] add filesystem tests to testsuite --- usr/bin/archboot-testsuite.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index 7a2dd4f75..5e310021a 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -94,10 +94,11 @@ _run_test "filesystems..." for i in bcachefs btrfs ext4 swap xfs vfat; do dd if=/dev/zero of=/test.img bs=1M count=1000 if [[ "${i}" == "swap" ]]; then - mkswap /test.img || echo ${i} >>filesystem-error.log + mkswap /test.img &>"${_NO_LOG}" || echo ${i} >>filesystem-error.log else - mkfs.${i} /test.img || echo ${i} >>filesystem-error.log - mount -o loop /test.img /mnt || echo ${i} >>filesystem-error.log + mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >>filesystem-error.log + mount -o loop /test.img /mnt || echo "Mount error: ${i}" >>filesystem-error.log + umount /mnt fi done _result filesytem-error.log