diff mbox

[5/9] check: Avoid that shellcheck complains that $FULL appears unused

Message ID 20180619202353.23631-6-bart.vanassche@wdc.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche June 19, 2018, 8:23 p.m. UTC
$FULL is a global variable. Avoid that shellcheck complains about it.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
---
 check | 2 ++
 1 file changed, 2 insertions(+)

Comments

Johannes Thumshirn June 25, 2018, 9:10 a.m. UTC | #1
Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
diff mbox

Patch

diff --git a/check b/check
index 5f53fa105f72..f1feb96b293e 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