diff options
author | 2018-07-30 16:39:46 +0200 | |
---|---|---|
committer | 2018-07-30 09:47:21 -0700 | |
commit | e094574f9bf806fb89a285c0a0263a46a1d536f9 (patch) | |
tree | ecce00074068a93f416eab112e8b84e4a2c0975a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fib_rules: NULL check before kfree is not needed (diff) | |
download | wireguard-linux-e094574f9bf806fb89a285c0a0263a46a1d536f9.tar.xz wireguard-linux-e094574f9bf806fb89a285c0a0263a46a1d536f9.zip |
selftests: forwarding: lib: Add require_command()
The logic for testing whether a certain command is available is used
several times in the current code base. The tests in follow-up patches
add more requirements like that.
Therefore extract the logic into a named function, require_command(),
that can be used directly from lib.sh as well as from any test that
wishes to declare dependence on some command.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions