From: Björn Töpel <hidden> Date: 2021-02-09 07:46:33
From: Björn Töpel <redacted>
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
use '||' to capture the return value of a failed command.
v3: Reintroduced /bin/bash, and kept 'set -e'. (Andrii)
v2: Kept /bin/sh and removed bashisms. (Randy)
Acked-by: William Tu <redacted>
Signed-off-by: Björn Töpel <redacted>
---
tools/testing/selftests/bpf/test_xdp_redirect.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
On Mon, Feb 8, 2021 at 11:45 PM Björn Töpel [off-list ref] wrote:
From: Björn Töpel <redacted>
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
use '||' to capture the return value of a failed command.
v3: Reintroduced /bin/bash, and kept 'set -e'. (Andrii)
v2: Kept /bin/sh and removed bashisms. (Randy)
Acked-by: William Tu <redacted>
Signed-off-by: Björn Töpel <redacted>
---
Not exactly what I had in mind (see below), but it's ok like this as well, so:
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Does it have to go through the bpf tree or bpf-next is fine? And what
about Fixes: tag?
From: Björn Töpel <hidden> Date: 2021-02-11 08:07:44
On 2021-02-10 21:13, Andrii Nakryiko wrote:
On Mon, Feb 8, 2021 at 11:45 PM Björn Töpel [off-list ref] wrote:
quoted
From: Björn Töpel <redacted>
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
use '||' to capture the return value of a failed command.
v3: Reintroduced /bin/bash, and kept 'set -e'. (Andrii)
v2: Kept /bin/sh and removed bashisms. (Randy)
Acked-by: William Tu <redacted>
Signed-off-by: Björn Töpel <redacted>
---
Not exactly what I had in mind (see below), but it's ok like this as well, so:
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Does it have to go through the bpf tree or bpf-next is fine? And what
about Fixes: tag?