Re: [net-next PATCH v5 2/4] test: hsr: Move common code to hsr_common.sh file

Paolo Abeni
2024-04-18T08:46:05Z

On Thu, 2024-04-18 at 10:41 +0200, Paolo Abeni wrote:
> On Mon, 2024-04-15 at 14:49 +0200, Lukasz Majewski wrote:
> > Some of the code already present in the hsr_ping.sh test program can be
> > moved to a separate script file, so it can be reused by other HSR
> > functionality (like HSR-SAN) tests.
> >
> > Signed-off-by: Lukasz Majewski <lukma@denx.de>
> > ---
> > tools/testing/selftests/net/hsr/hsr_common.sh | 96 +++++++++++++++++++
> > tools/testing/selftests/net/hsr/hsr_ping.sh | 93 +-----------------
> > 2 files changed, 99 insertions(+), 90 deletions(-)
> > create mode 100644 tools/testing/selftests/net/hsr/hsr_common.sh
> >
> > diff --git a/tools/testing/selftests/net/hsr/hsr_common.sh b/tools/testing/selftests/net/hsr/hsr_common.sh
> > new file mode 100644
> > index 000000000000..822165391573
> > --- /dev/null
> > +++ b/tools/testing/selftests/net/hsr/hsr_common.sh

Whoops, I almost forgot: you need to add hsr_common.sh in the
TEST_FILES list in the net self-tests Makefile

Thanks,

Paolo