xfs/279: skip test if we can't allocate scsi_debug device
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 05:11:00 +0000 (21:11 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 2 Feb 2020 12:46:58 +0000 (20:46 +0800)
commite002de2e5b54b986079a1c8eaac4def580be9bac
tree2848a7e15739deaf193023a22fc78585149a166e
parent6478e334382965fcb0c21cf7cac987180d7078cc
xfs/279: skip test if we can't allocate scsi_debug device

Due to the unique structure of xfs/279 running _get_scsi_debug_dev from
a backtick from inside subshell, the "could not get scsi_debug device"
checks do not actually stop the test when modprobe scsi_debug fails.

Therefore, check the value of SCSI_DEBUG_DEV from the subshell and
_notrun the test if we couldn't get memory.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/279