From: Yucong Sun <fallentree@fb.com>
To: <bpf@vger.kernel.org>
Cc: <andrii@kernel.org>, <fallentree@fb.com>, <sunyucong@gmail.com>
Subject: [PATCH bpf-next] selftests/bpf: workaround stdout issue in VM launched by vmtest.sh
Date: Tue, 22 Feb 2022 16:05:44 -0800 [thread overview]
Message-ID: <20220223000544.3524440-1-fallentree@fb.com> (raw)
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@fb.com>
---
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
next reply other threads:[~2022-02-23 0:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-23 0:05 Yucong Sun [this message]
2022-02-23 5:18 ` [PATCH bpf-next] selftests/bpf: workaround stdout issue in VM launched by vmtest.sh Song Liu
2022-02-23 19:02 ` sunyucong
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=20220223000544.3524440-1-fallentree@fb.com \
--to=fallentree@fb.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sunyucong@gmail.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