Thread (30 messages) 30 messages, 5 authors, 2018-06-27
STALE2940d
Revisions (2)
  1. v1 current
  2. v3 [diff vs current]

[PATCH blktests 05/15] check: Avoid that shellcheck complains that $FULL appears unused

From: Bart Van Assche <hidden>
Date: 2018-06-22 22:19:48
Subsystem: the rest · Maintainer: Linus Torvalds

$FULL is a global variable. Avoid that shellcheck complains about it.

Signed-off-by: Bart Van Assche <redacted>
---
 check | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/check b/check
index 1774be4fe1a7..d9ffea6ec1f6 100755
--- a/check
+++ b/check
@@ -301,6 +301,8 @@ _call_test() {
 	local test_func="$1"
 	local seqres="${RESULTS_DIR}/${TEST_NAME}"
 	FULL="${seqres}.full"
+	# Avoid that shellcheck complains that $FULL appears unused.
+	echo "$FULL" >/dev/null
 	declare -A TEST_DEV_QUEUE_SAVED
 
 	_read_last_test_run
-- 
2.17.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help