mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: Escape SCRATCH_DEV variable
Escape SCRATCH_DEV variable so it prints its name, instead of printing the value. If the value is "", the error message will not be very informative. Signed-off-by: André Almeida <andrealmeid@collabora.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -1537,7 +1537,7 @@ _require_scratch_nocheck()
|
|||||||
tmpfs)
|
tmpfs)
|
||||||
if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ];
|
if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ];
|
||||||
then
|
then
|
||||||
_notrun "this test requires a valid \$SCRATCH_MNT and unique $SCRATCH_DEV"
|
_notrun "this test requires a valid \$SCRATCH_MNT and unique \$SCRATCH_DEV"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
ubifs)
|
ubifs)
|
||||||
|
|||||||
Reference in New Issue
Block a user