Re: [PATCH bpf v2] selftests/bpf: remove bash feature in test_xdp_redirect.sh

2021-02-08 Thread Randy Dunlap
On 2/8/21 10:41 PM, Björn Töpel wrote: > On 2021-02-09 06:52, Andrii Nakryiko wrote: >> On Sat, Feb 6, 2021 at 1:29 AM Björn Töpel wrote: >>> >>> From: Björn Töpel >>> >>> The test_xdp_redirect.sh script uses a bash redirect feature, >>> '&>/dev/null'. Use '>/dev/null 2>&1' instead. >> >> We have

Re: [PATCH bpf v2] selftests/bpf: remove bash feature in test_xdp_redirect.sh

2021-02-08 Thread Björn Töpel
On 2021-02-09 06:52, Andrii Nakryiko wrote: On Sat, Feb 6, 2021 at 1:29 AM Björn Töpel wrote: From: Björn Töpel The test_xdp_redirect.sh script uses a bash redirect feature, '&>/dev/null'. Use '>/dev/null 2>&1' instead. We have plenty of explicit bash uses in selftest scripts, I'm not sure

Re: [PATCH bpf v2] selftests/bpf: remove bash feature in test_xdp_redirect.sh

2021-02-08 Thread Andrii Nakryiko
On Sat, Feb 6, 2021 at 1:29 AM Björn Töpel wrote: > > From: Björn Töpel > > The test_xdp_redirect.sh script uses a bash redirect feature, > '&>/dev/null'. Use '>/dev/null 2>&1' instead. We have plenty of explicit bash uses in selftest scripts, I'm not sure it's a good idea to make scripts more v

Re: [PATCH bpf v2] selftests/bpf: remove bash feature in test_xdp_redirect.sh

2021-02-06 Thread Randy Dunlap
On 2/6/21 1:26 AM, Björn Töpel wrote: > From: Björn Töpel > > The test_xdp_redirect.sh script uses a bash redirect feature, > '&>/dev/null'. Use '>/dev/null 2>&1' instead. > > Also remove the 'set -e' since the script actually relies on that the > return value can be used to determine pass/fail

[PATCH bpf v2] selftests/bpf: remove bash feature in test_xdp_redirect.sh

2021-02-06 Thread Björn Töpel
From: Björn Töpel The test_xdp_redirect.sh script uses a bash redirect feature, '&>/dev/null'. Use '>/dev/null 2>&1' instead. Also remove the 'set -e' since the script actually relies on that the return value can be used to determine pass/fail of the test. Acked-by: William Tu Fixes: 996139e80