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:
parent
93ed220b13
commit
55c58c6fd3
|
@ -48,7 +48,7 @@ ts_log "testing offsets with full block size"
|
||||||
run_tscmd $TS_CMD_BLKDISCARD -v $DEVICE
|
run_tscmd $TS_CMD_BLKDISCARD -v $DEVICE
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
# Skip the rest? For example loop backing files on NFS seem unsupported.
|
# 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"
|
&& ts_skip "BLKDISCARD not supported"
|
||||||
fi
|
fi
|
||||||
run_tscmd $TS_CMD_BLKDISCARD -v -o 1 $DEVICE
|
run_tscmd $TS_CMD_BLKDISCARD -v -o 1 $DEVICE
|
||||||
|
|
Loading…
Reference in New Issue