From 212b62d08aed08dd6d9332fdaee372ec0bfb7877 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 11 Jul 2024 20:20:05 +0200 Subject: [PATCH] fix filesystem test --- usr/bin/archboot-testsuite.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/usr/bin/archboot-testsuite.sh b/usr/bin/archboot-testsuite.sh index d2c5c804f..f22fc0f82 100755 --- a/usr/bin/archboot-testsuite.sh +++ b/usr/bin/archboot-testsuite.sh @@ -90,20 +90,22 @@ for i in $(pacman -Ql $(pacman -Q | sd ' .*' '') | rg -o '/usr/share/licenses/.* [[ -e "${i}" ]] || echo "${i}" | rg -v '/xz/' >>license-error.txt done _result license-error.txt -_run_test "filesystems..." +_run_test "filesystems" for i in bcachefs btrfs ext4 swap vfat xfs; do dd if=/dev/zero of=/test.img bs=1M count=1000 &>"${_NO_LOG}" + sync if [[ "${i}" == "swap" ]]; then mkswap /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log + sync else mkfs.${i} /test.img &>"${_NO_LOG}" || echo "Creation error: ${i}" >> filesystems-error.log - sleep 1 - mount -o loop /test.img /mnt || echo "Mount error: ${i}" >> filesystems-error.log + sync + mount -o loop /test.img /mnt &>"${_NO_LOG}" || echo "Mount error: ${i}" >> filesystems-error.log umount /mnt fi done _result filesytems-error.log -_run_test "Wi-Fi iwctl..." +_run_test "Wi-Fi iwctl" archboot-hwsim.sh test &>"${_NO_LOG}" iwctl station wlan1 scan sleep 5