OSDN Git Service

selftests: forwarding: lib: Split out setup_wait_dev()
authorPetr Machata <petrm@mellanox.com>
Thu, 28 Jun 2018 16:56:20 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:34:09 +0000 (20:34 +0900)
commit010079bac0ce294f0ce177c0363e0e7579ed7f0c
tree14645a1289b5e74ea5f04728a776b5ce9ecf8826
parentb330219cb21ddbb79d02e31cdb768cc1340e51db
selftests: forwarding: lib: Split out setup_wait_dev()

Split out of setup_wait() a function setup_wait_dev() that waits for a
single device. This gives tests the opportunity to wait for a selected
device after they tinkered with its upness.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh