lkml.org 
[lkml]   [2024]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [net-next PATCH v5 2/4] test: hsr: Move common code to hsr_common.sh file
From
Date
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


\
 
 \ /
  Last update: 2024-05-27 16:44    [W:0.026 / U:2.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site