From: Bart Van Assche Date: Fri, 22 Jun 2018 22:19:43 +0000 (-0700) Subject: check: Make TMPDIR absolute X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3afefc21acf32c495ef7f823932c0844f884ed6f;p=users%2Fsagi%2Fblktests.git check: Make TMPDIR absolute This avoids that ${TMPDIR} gets misinterpreted if a test script modifies the working directory. Signed-off-by: Bart Van Assche --- diff --git a/check b/check index 2f7e813..99f64b6 100755 --- a/check +++ b/check @@ -324,7 +324,7 @@ _call_test() { fi trap _cleanup EXIT - if ! TMPDIR="$(mktemp --tmpdir -p results -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then + if ! TMPDIR="$(mktemp --tmpdir -p "$PWD/results" -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then return fi