tests: check correct log file for errors in blkdiscard test

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>
This commit is contained in:
Ross Burton 2021-06-29 18:10:40 +01:00
parent 93ed220b13
commit 55c58c6fd3
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ ts_log "testing offsets with full block size"
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