Thread (11 messages) 11 messages, 3 authors, 2018-07-11
STALE2935d
Revisions (3)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v3 current

[PATCH blktests v3 2/6] check: Make $FULL an absolute path

From: Bart Van Assche <hidden>
Date: 2018-07-09 22:56:45
Subsystem: the rest · Maintainer: Linus Torvalds

This makes it safe to use $FULL in shell code that modifies (and
restores) the working directory.

Signed-off-by: Bart Van Assche <redacted>
---
 check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/check b/check
index a63553120635..5f4461f8b5b4 100755
--- a/check
+++ b/check
@@ -313,7 +313,7 @@ _call_test() {
 	local test_func="$1"
 	local seqres="${RESULTS_DIR}/${TEST_NAME}"
 	# shellcheck disable=SC2034
-	FULL="${seqres}.full"
+	FULL="$PWD/${seqres}.full"
 	declare -A TEST_DEV_QUEUE_SAVED
 
 	_read_last_test_run
-- 
2.18.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help