diff options
author | Karel Zak | 2013-08-26 13:48:40 +0200 |
---|---|---|
committer | Karel Zak | 2013-08-26 13:48:40 +0200 |
commit | ef2c9e3f5e51cf13ec9cf6738d4f1d695ee32a6f (patch) | |
tree | 326a013c3fbc74592a0f0f1affc03a8fefa7b33f /tests/functions.sh | |
parent | swapon: cleanup man page (diff) | |
download | kernel-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.sh | 2 |
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}" |