From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- tests/ts/misc/fallocate | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ts/misc/fallocate b/tests/ts/misc/fallocate index e938abb..b37d025 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 -- 1.8.5.6 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html