From ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 26 Aug 2013 13:48:40 +0200 Subject: tests: minor changes to make tests more portable Signed-off-by: Karel Zak --- tests/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index 361ab7075..7d9688691 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -492,7 +492,7 @@ function ts_scsi_debug_init { modprobe scsi_debug $* [ "$?" == 0 ] || ts_die "Cannot init device" - DEVNAME=$(grep scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}') + DEVNAME=$(grep --with-filename scsi_debug /sys/block/*/device/model | awk -F '/' '{print $4}') [ "x${DEVNAME}" == "x" ] && ts_die "Cannot find device" DEVICE="/dev/${DEVNAME}" -- cgit v1.2.3-55-g7522