diff options
| author | Björn Töpel <[email protected]> | 2021-02-11 09:20:29 +0100 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-02-11 16:28:02 +0100 |
| commit | 732fa32330667a80ce4985ca81b6e9d6b2ad2072 (patch) | |
| tree | 67bd624aabd684d6c8d6e9f40ea8dd450d28bfd6 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb (diff) | |
selftests/bpf: Convert test_xdp_redirect.sh to bash
The test_xdp_redirect.sh script uses a bash feature, '&>'. On systems,
e.g. Debian, where '/bin/sh' is dash, this will not work as
expected. Use bash in the shebang to get the expected behavior.
Further, using 'set -e' means that the error of a command cannot be
captured without the command being executed with '&&' or '||'. Let us
restructure the ping-commands, and use them as an if-expression, so
that we can capture the return value.
v4: Added missing Fixes:, and removed local variables. (Andrii)
v3: Reintroduced /bin/bash, and kept 'set -e'. (Andrii)
v2: Kept /bin/sh and removed bashisms. (Randy)
Fixes: 996139e801fd ("selftests: bpf: add a test for XDP redirect")
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions