summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc
diff options
context:
space:
mode:
authorRuediger Meier2017-05-31 23:32:07 +0200
committerRuediger Meier2017-06-01 10:28:14 +0200
commit4cb6d04aeec2ffadd99576effe4ef7264b9afa78 (patch)
tree8b658a786c81c494c25ad942f175e335071d5c59 /tests/ts/misc
parenttests: use stdbuf when stderr and stdout is randomly ordered (diff)
downloadkernel-qcow2-util-linux-4cb6d04aeec2ffadd99576effe4ef7264b9afa78.tar.gz
kernel-qcow2-util-linux-4cb6d04aeec2ffadd99576effe4ef7264b9afa78.tar.xz
kernel-qcow2-util-linux-4cb6d04aeec2ffadd99576effe4ef7264b9afa78.zip
tests: handle non glibc error message for fallocate
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/misc')
-rwxr-xr-xtests/ts/misc/fallocate5
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