diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2018-10-20 22:58:44 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-20 23:17:43 -0700 |
commit | c5fa5d602221362f8341ecd9e32d83194abf5bd9 (patch) | |
tree | 6d9be8ac450553a0730f939aad476fdc17a2f6e2 /tools/bpf/bpftool/Documentation/bpftool-map.rst | |
parent | Merge branch 'misc-improvements' (diff) | |
download | linux-dev-c5fa5d602221362f8341ecd9e32d83194abf5bd9.tar.xz linux-dev-c5fa5d602221362f8341ecd9e32d83194abf5bd9.zip |
selftests/bpf: fix return value comparison for tests in test_libbpf.sh
The return value for each test in test_libbpf.sh is compared with
if (( $? == 0 )) ; then ...
This works well with bash, but not with dash, that /bin/sh is aliased to
on some systems (such as Ubuntu).
Let's replace this comparison by something that works on both shells.
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/Documentation/bpftool-map.rst')
0 files changed, 0 insertions, 0 deletions