selftests: net: push jq workaround into separate helper
authorJiri Pirko <jiri@mellanox.com>
Thu, 15 Aug 2019 13:42:28 +0000 (15:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 19:01:21 +0000 (12:01 -0700)
commitd87e5edb4cd7c954b71cfcb9fbfce65eac76e141
treef24e12a03c23043ce8f293c5bc922ddc0eba068d
parent873343e7d4964fa70cac22e2f7653f510bfaaa11
selftests: net: push jq workaround into separate helper

Push the jq return value workaround code into a separate helper so it
could be used by the rest of the code.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/tc_common.sh