test_children_cleanup: fix redirection issue in shell
Signed-off-by Li Wang <[email protected]>
--- lib/newlib_tests/test_children_cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/newlib_tests/test_children_cleanup.sh +1 -1
@@ -3,7 +3,7 @@ # Copyright (c) 2022 SUSE LLC <[email protected]> TMPFILE="/tmp/ltp_children_cleanup_$$.log" -./test_children_cleanup &>"$TMPFILE" +./test_children_cleanup 1>$TMPFILE 2>&1 CHILD_PID=`sed -n 's/^.*Forked child \([0-9]*\)$/\1/p' "$TMPFILE"` rm "$TMPFILE"
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp