]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: Make $FULL an absolute path
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 29 Jun 2018 21:03:35 +0000 (14:03 -0700)
committerBart Van Assche <bart.vanassche@wdc.com>
Mon, 9 Jul 2018 22:31:58 +0000 (15:31 -0700)
This makes it safe to use $FULL in shell code that modifies (and
restores) the working directory.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
check

diff --git a/check b/check
index a6355312063564c0c167df4f8c09f53f7258596d..5f4461f8b5b4fb7f241fad4468ae368668845896 100755 (executable)
--- 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