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

Signed-off-by: Bart Van Assche <bart.vanass...@wdc.com>
---
 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

Reply via email to