]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: lib: extract ping and ping6 so they can be reused
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 3 Jul 2018 12:42:43 +0000 (15:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 12:40:02 +0000 (21:40 +0900)
commit82461f8c3926d720df5f06ad8ce8c636011a2753
treefe62161f3919ec9026400e402619a9d34282df7a
parente61c85fdd59e3d2c520cf0fde340632ea27f67b6
selftests: forwarding: lib: extract ping and ping6 so they can be reused

Extract ping and ping6 command execution so the return value can be
checked by the caller, this is needed for port isolation tests that are
intended to fail.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh