Re: [PATCH nft 4/5] tests: shell: add and use feature probe for map query like a set

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

 



On Mon, 2023-09-04 at 11:06 +0200, Florian Westphal wrote:
> 
> +set +e
> +$NFT get element ip dynset dynmark { 10.2.3.4 } && exit 1
> +
> +# success, but indicate skip for reduced test to avoid dump
> validation error
> +if [ $NFT_HAVE_map_lookup -eq 0 ];then
> +       exit 123
> +fi

Instead of adding a comment, print a message with the reason why it was
skipped. That's useful information to see in the test output.
The `echo` line also makes the comment redundant.

Thomas





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

  Powered by Linux