Skip to content

Commit 2e71ec1

Browse files
liuhangbinummakynes
authored andcommitted
selftests: netfilter: fix exit value for nft_concat_range
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: 611973c ("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>
1 parent 75063c9 commit 2e71ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/netfilter/nft_concat_range.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,4 +1601,4 @@ for name in ${TESTS}; do
16011601
done
16021602
done
16031603

1604-
[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP}
1604+
[ ${passed} -eq 0 ] && exit ${KSELFTEST_SKIP} || exit 0

0 commit comments

Comments
 (0)