This apply a workaround to fix stdout issue in `./vmtest.sh` invocations, but doesn't work on `./vmtest.sh -s` Signed-off-by: Yucong Sun <fallentree@xxxxxx> --- tools/testing/selftests/bpf/vmtest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/bpf/vmtest.sh b/tools/testing/selftests/bpf/vmtest.sh index e0bb04a97e10..a9f943a84ed5 100755 --- a/tools/testing/selftests/bpf/vmtest.sh +++ b/tools/testing/selftests/bpf/vmtest.sh @@ -184,6 +184,10 @@ EOF fi sudo bash -c "echo '#!/bin/bash' > ${init_script}" + sudo bash -c "cat >>${init_script}" <<EOF +# Force rebinding stdout/stderr to /dev/ttyS0, to workaround a mysterious issue +exec 1>/dev/ttyS0 2>/dev/ttyS0 +EOF if [[ "${command}" != "" ]]; then sudo bash -c "cat >>${init_script}" <<EOF -- 2.30.2