]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add an option for a debug shell in vmtest.sh
authorKP Singh <kpsingh@kernel.org>
Tue, 23 Mar 2021 01:47:52 +0000 (01:47 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 31 Mar 2021 05:05:23 +0000 (22:05 -0700)
commite33adaeea218243c8321c4245c50b9730986f71d
tree4ec0d4da5c940ba9d3424fc41c068085b0a6aebe
parent87f5508a0e7ed40bf1fb1cac549379a62320dde8
selftests/bpf: Add an option for a debug shell in vmtest.sh

The newly introduced -s command line option starts an interactive shell.
If a command is specified, the shell is started after the command
finishes executing. It's useful to have a shell especially when
debugging failing tests or developing new tests.

Since the user may terminate the VM forcefully, an extra "sync" is added
after the execution of the command to persist any logs from the command
into the log file.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210323014752.3198283-1-kpsingh@kernel.org
tools/testing/selftests/bpf/vmtest.sh