]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit63f8af0fc34197a276674fa0d4d865aeff1f0172
tree4ec0d4da5c940ba9d3424fc41c068085b0a6aebe
parent235fc0e36d35270e1ff426f26bbea6154b8863a5
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