From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] tst_test: discard the stderr output
Date: Tue, 18 May 2021 20:26:09 +0800 [thread overview]
Message-ID: <20210518122610.17171-1-liwang@redhat.com> (raw)
Signed-off-by: Li Wang <liwang@redhat.com>
---
Notes:
We can merge this before the new release.
testcases/lib/tst_test.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
index 28c2052d6..3a5651c01 100644
--- a/testcases/lib/tst_test.sh
+++ b/testcases/lib/tst_test.sh
@@ -444,13 +444,13 @@ _tst_kill_test()
kill -INT -$pid
tst_sleep 100ms
- while kill -0 $pid 2>&1 > /dev/null && [ $i -gt 0 ]; do
+ while kill -0 $pid >/dev/null 2>&1 && [ $i -gt 0 ]; do
tst_res TINFO "Test is still running, waiting ${i}s"
sleep 1
i=$((i-1))
done
- if kill -0 $pid 2>&1 > /dev/null; then
+ if kill -0 $pid >/dev/null 2>&1; then
tst_res TBROK "Test still running, sending SIGKILL"
kill -KILL -$pid
fi
--
2.31.1
next reply other threads:[~2021-05-18 12:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 12:26 Li Wang [this message]
2021-05-18 12:26 ` [LTP] [PATCH 2/2] tst_test: using SIGTERM to terminate process Li Wang
2021-05-19 6:46 ` Joerg Vehlow
2021-05-19 8:52 ` Li Wang
2021-05-31 12:35 ` Cyril Hrubis
2021-05-31 13:16 ` Joerg Vehlow
2021-05-31 12:54 ` Cyril Hrubis
2021-06-01 4:23 ` Joerg Vehlow
2021-05-31 12:49 ` Cyril Hrubis
2021-05-31 13:20 ` Joerg Vehlow
2021-05-31 12:57 ` Cyril Hrubis
2021-06-01 2:08 ` Li Wang
2021-06-01 4:03 ` Petr Vorel
2021-05-18 13:50 ` [LTP] [PATCH 1/2] tst_test: discard the stderr output Cyril Hrubis
2021-05-18 14:35 ` Petr Vorel
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=20210518122610.17171-1-liwang@redhat.com \
--to=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/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