From 4243ee6a3d028037ea6745015f7f76195cbf6f53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Almeida?= Date: Wed, 24 Mar 2021 19:48:16 -0300 Subject: [PATCH] common: Escape SCRATCH_DEV variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5