Skip to content

Commit bf61f10

Browse files
wangli5665pevik
authored andcommitted
tst_test: discard the stderr output
Fixes: 25ad54d ("tst_test.sh: Run cleanup also after test timeout") Reviewed-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Li Wang <[email protected]>
1 parent 55f1c75 commit bf61f10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testcases/lib/tst_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,13 +444,13 @@ _tst_kill_test()
444444
kill -INT -$pid
445445
tst_sleep 100ms
446446

447-
while kill -0 $pid 2>&1 > /dev/null && [ $i -gt 0 ]; do
447+
while kill -0 $pid >/dev/null 2>&1 && [ $i -gt 0 ]; do
448448
tst_res TINFO "Test is still running, waiting ${i}s"
449449
sleep 1
450450
i=$((i-1))
451451
done
452452

453-
if kill -0 $pid 2>&1 > /dev/null; then
453+
if kill -0 $pid >/dev/null 2>&1; then
454454
tst_res TBROK "Test still running, sending SIGKILL"
455455
kill -KILL -$pid
456456
fi

0 commit comments

Comments
 (0)