From: André Almeida Date: Wed, 24 Mar 2021 22:48:16 +0000 (-0300) Subject: common: Escape SCRATCH_DEV variable X-Git-Tag: v2022.05.01~491 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=4243ee6a3d028037ea6745015f7f76195cbf6f53 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 Reviewed-by: Gabriel Krisman Bertazi Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index 6d1757da..fc1a7751 100644 --- a/common/rc +++ b/common/rc @@ -1537,7 +1537,7 @@ _require_scratch_nocheck() tmpfs) if [ -z "$SCRATCH_DEV" -o ! -d "$SCRATCH_MNT" ]; 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 ;; ubifs)