From: Ruediger Meier Date: Wed, 31 May 2017 21:32:07 +0000 (+0200) Subject: tests: handle non glibc error message for fallocate X-Git-Tag: v2.30~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb6d04aeec2ffadd99576effe4ef7264b9afa78;p=thirdparty%2Futil-linux.git tests: handle non glibc error message for fallocate Signed-off-by: Ruediger Meier --- diff --git a/tests/ts/misc/fallocate b/tests/ts/misc/fallocate index e938abb302..b37d025917 100755 --- a/tests/ts/misc/fallocate +++ b/tests/ts/misc/fallocate @@ -30,9 +30,8 @@ else # fs type of $TS_OUTDIR, could be used to skip this test early fs_type=$(${TS_CMD_FINDMNT} -n -o FSTYPE -T ${TS_OUTDIR}) - test "$(<$TS_OUTPUT)" \ - = "fallocate: fallocate failed: Operation not supported" \ - && ts_skip "'${fs_type}' not supported" + grep -qi "fallocate: fallocate failed:.*not supported" $TS_OUTPUT \ + && ts_skip "'${fs_type}' not supported" fi rm -f $IMAGE