From: Benjamin Drung Date: Thu, 15 Jan 2026 12:55:50 +0000 (+0100) Subject: test(DMSQUASH): use test_marker_check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb68ad2620b745072f528cd15824f63d06a08f75;p=thirdparty%2Fdracut-ng.git test(DMSQUASH): use test_marker_check Use `test_marker_check` to shorten the test case code. --- diff --git a/test/TEST-30-DMSQUASH/test.sh b/test/TEST-30-DMSQUASH/test.sh index 8108317ec..934a84ab6 100755 --- a/test/TEST-30-DMSQUASH/test.sh +++ b/test/TEST-30-DMSQUASH/test.sh @@ -67,15 +67,8 @@ test_run() { rootPartitions=$(sfdisk -d "$TESTDIR"/root.img | grep -c 'root\.img[0-9]') [ "$rootPartitions" -eq 2 ] - - ( - # Ensure that this test works when run with the `V=1` parameter, which runs the script with `set -o pipefail`. - set +o pipefail - - # Verify that the string "dracut-autooverlay-success" occurs in the second partition in the image file. - dd if="$TESTDIR"/root.img bs=1M status=none \ - | grep -F -a -m 1 -q dracut-autooverlay-success - ) + # Verify that the string "dracut-autooverlay-success" occurs in the second partition in the image file. + test_marker_check dracut-autooverlay-success root.img return 0 }