summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2013-08-26 13:48:40 +0200
committerKarel Zak2013-08-26 13:48:40 +0200
commitef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f (patch)
tree326a013c3fbc74592a0f0f1affc03a8fefa7b33f /tests/functions.sh
parentswapon: cleanup man page (diff)
downloadkernel-qcow2-util-linux-ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f.tar.gz
kernel-qcow2-util-linux-ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f.tar.xz
kernel-qcow2-util-linux-ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f.zip
tests: minor changes to make tests more portable
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh2
1 files changed, 1 insertions, 1 deletions
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}"