selftests: netfilter: fix exit value for nft_concat_range
commit2e71ec1a72upstream. When the nft_concat_range test failed, it exit 1 in the code specifically. But when part of, or all of the test passed, it will failed the [ ${passed} -eq 0 ] check and thus exit with 1, which is the same exit value with failure result. Fix it by exit 0 when passed is not 0. Fixes:611973c1e0("selftests: netfilter: Introduce tests for sets with range concatenation") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b26ea3f6b7
commit
26931971db
1 changed files with 1 additions and 1 deletions
|
|
@ -1583,4 +1583,4 @@ for name in ${TESTS}; do
|
|||
done
|
||||
done
|
||||
|
||||
[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP}
|
||||
[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} || exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue