Re: [PATCH v2 bpf-next] selftests/bpf: Add an option for a debug shell in vmtest.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 26, 2021 at 5:48 AM Andrii Nakryiko
<andrii.nakryiko@xxxxxxxxx> wrote:
>
> On Mon, Mar 22, 2021 at 6:47 PM KP Singh <kpsingh@xxxxxxxxxx> wrote:
> >
> > 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@xxxxxxxxxx>
> > ---
>
> I run:
>
> ./vmtest.sh -s
>
> And I get test_progs executed, not bash. What do I do wrong?...

It does not seem to happen for me [classic, works on my machine :P]

tools/testing/selftests/bpf$ ./vmtest.sh -s
[...]
+ /etc/rcS.d/S50-startup
bash: cannot set terminal process group (84): Inappropriate ioctl for device
bash: no job control in this shell
[root@(none) /]#

To help debug this:

Can you check the contents of /etc/rcS.d/S50-startup on the image,
here's what mine looks like:

[root@(none) /]# cat /etc/rcS.d/S50-startup
#!/bin/bash
bash

2. Also, can you delete the cache in the home directory
(~/.bpf_selftests by default) and try again?

>
> >  tools/testing/selftests/bpf/vmtest.sh | 39 +++++++++++++++++++--------
> >  1 file changed, 28 insertions(+), 11 deletions(-)
> >
>
> [...]



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux