When checking if the discard ioctl is supported, look in stderr not stdout as
that is where the error appears.
Signed-off-by: Ross Burton <ross.burton@arm.com>
run_tscmd $TS_CMD_BLKDISCARD -v $DEVICE
if [ "$?" != "0" ]; then
# Skip the rest? For example loop backing files on NFS seem unsupported.
- grep -q "BLKDISCARD ioctl failed: Operation not supported" "$TS_OUTPUT" \
+ grep -q "BLKDISCARD ioctl failed: Operation not supported" "$TS_ERRLOG" \
&& ts_skip "BLKDISCARD not supported"
fi
run_tscmd $TS_CMD_BLKDISCARD -v -o 1 $DEVICE