Skip to content

Commit

Permalink
selftests: forwarding: ping{6, }_test(): Add description argument
Browse files Browse the repository at this point in the history
Have ping_test() recognize an optional argument with a description of
the test. This is handy if there are several ping test, to make it clear
which is which.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Petr Machata authored and David S. Miller committed Nov 20, 2018
1 parent d0540d1 commit 58c7a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/selftests/net/forwarding/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ ping_test()

ping_do $1 $2
check_err $?
log_test "ping"
log_test "ping$3"
}

ping6_do()
Expand All @@ -832,7 +832,7 @@ ping6_test()

ping6_do $1 $2
check_err $?
log_test "ping6"
log_test "ping6$3"
}

learning_test()
Expand Down

0 comments on commit 58c7a2d

Please sign in to comment.