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:
André Almeida
2021-03-24 19:48:16 -03:00
committed by Eryu Guan
parent 7be083b142
commit 4243ee6a3d
+1 -1
View File
@@ -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)