From 55c58c6fd3c70197c85be87ac46058ce36f1f559 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 29 Jun 2021 18:10:40 +0100 Subject: [PATCH] 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 --- tests/ts/blkdiscard/offsets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ts/blkdiscard/offsets b/tests/ts/blkdiscard/offsets index 9dddc35e2..5e724d51b 100755 --- a/tests/ts/blkdiscard/offsets +++ b/tests/ts/blkdiscard/offsets @@ -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