diff options
Diffstat (limited to 'tests/ts/misc/fallocate')
-rwxr-xr-x | tests/ts/misc/fallocate | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ts/misc/fallocate b/tests/ts/misc/fallocate index e938abb30..b37d02591 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 |