From: Yi Zhang <yi.zhang@redhat.com>
To: linux-block@vger.kernel.org
Cc: shinichiro.kawasaki@wdc.com, dwagner@suse.de
Subject: [PATCH blktests V2] check: define TMPDIR earlier in _run_group
Date: Wed, 11 Oct 2023 15:25:30 +0800 [thread overview]
Message-ID: <20231011072530.1659810-1-yi.zhang@redhat.com> (raw)
The TMPDIR was defined in _call_test before running test_func, but it
was used in nvme/rc which has not yet defined, so move the definiation
before calling tests/${group}/rc in _run_group.
Fixes: b6356f6 ("nvme/rc: Add common file_path name define")
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
---
check | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/check b/check
index 55871b0..99d8a69 100755
--- a/check
+++ b/check
@@ -364,9 +364,6 @@ _call_test() {
unset TEST_CLEANUP
trap _cleanup EXIT
- if ! TMPDIR="$(mktemp --tmpdir -p "$OUTPUT" -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then
- return
- fi
TIMEFORMAT="%Rs"
pushd . >/dev/null || return
@@ -559,6 +556,10 @@ _run_group() {
local tests=("$@")
local group="${tests["0"]%/*}"
+ if ! TMPDIR="$(mktemp --tmpdir -p "$OUTPUT" -d "tmpdir.${TEST_NAME//\//.}.XXX")"; then
+ return
+ fi
+
# shellcheck disable=SC1090
. "tests/${group}/rc"
--
2.34.3
next reply other threads:[~2023-10-11 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 7:25 Yi Zhang [this message]
2023-10-11 7:58 ` [PATCH blktests V2] check: define TMPDIR earlier in _run_group Daniel Wagner
2023-10-11 12:15 ` Shinichiro Kawasaki
2023-10-12 2:16 ` Shinichiro Kawasaki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231011072530.1659810-1-yi.zhang@redhat.com \
--to=yi.zhang@redhat.com \
--cc=dwagner@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=shinichiro.kawasaki@wdc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox