Re: [PATCH nf] selftests: netfilter: fix exit value for nft_concat_range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed,  9 Feb 2022 16:25:51 +0800
Hangbin Liu <liuhangbin@xxxxxxxxx> wrote:

> 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.

Oops, right, thanks for fixing this!
 
> Fixes: 611973c1e06f ("selftests: netfilter: Introduce tests for sets with range concatenation")
> Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx>

Reviewed-by: Stefano Brivio <sbrivio@xxxxxxxxxx>

-- 
Stefano




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux