mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/279: filter scsi debug device correctly
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>
This commit is contained in:
+1
-1
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user