]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/279: filter scsi debug device correctly
authorEryu Guan <eguan@redhat.com>
Mon, 5 Sep 2016 05:24:24 +0000 (13:24 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 8 Sep 2016 05:55:13 +0000 (13:55 +0800)
This test assumes scsi debug device is "/dev/sd." when doing the
filter, but that isn't always true, I've seen failure like

  -mkfs with opts: DEVICE
  +mkfs with opts: DEVICEl

So use $SCSI_DEBUG_DEV to match the correct scsi debug device name.

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/279

index cde7d21e29f43b077d81992cf97530036abdfb47..9dee4cfb041d09ecd9093a51c82f6091914424a6 100755 (executable)
@@ -61,7 +61,7 @@ _wipe_device()
 _check_mkfs()
 {
        echo "===================" 
-       echo "mkfs with opts: $@" | sed -e "s,/dev/sd.,DEVICE,"
+       echo "mkfs with opts: $@" | sed -e "s,$SCSI_DEBUG_DEV,DEVICE,"
        $MKFS_XFS_PROG $@ 2>/dev/null > $tmp.mkfs.full
        if [ $? -ne 0 ]; then
                echo "Failed."