Re: [PATCH net-next] selftests: net: check jq command is supported
From: Paolo Abeni
Date: Fri Oct 10 2025 - 10:56:46 EST
On 10/10/25 5:30 AM, Wang Liang wrote:
> The jq command is used in vlan_bridge_binding.sh, if it is not supported,
> the test will spam the following log.
>
> # ./vlan_bridge_binding.sh: line 51: jq: command not found
> # ./vlan_bridge_binding.sh: line 51: jq: command not found
> # ./vlan_bridge_binding.sh: line 51: jq: command not found
> # ./vlan_bridge_binding.sh: line 51: jq: command not found
> # ./vlan_bridge_binding.sh: line 51: jq: command not found
> # TEST: Test bridge_binding on->off when lower down [FAIL]
> # Got operstate of , expected 0
>
> The rtnetlink.sh has the same problem. It makes sense to check if jq is
> installed before running these tests. After this patch, the
> vlan_bridge_binding.sh skipped if jq is not supported:
>
> # timeout set to 3600
> # selftests: net: vlan_bridge_binding.sh
> # TEST: jq not installed [SKIP]
>
> Signed-off-by: Wang Liang <wangliang74@xxxxxxxxxx>
This looks more a fix than net-next material (and net-next is currently
closed for the merge window).
Please re-post for net including suitable fixes tag(s). You can retain
Hangbin's ack.
Thanks,
Paolo