Re: [PATCH net-next] selftests: net: check jq command is supported

From: Wang Liang
Date: Fri Oct 10 2025 - 23:26:32 EST



在 2025/10/10 22:56, Paolo Abeni 写道:
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


Thanks for your reminder!

I missed the ANN e-mail when I was in Chinese National Day vacation. I will
repost this patch for net later.

------
Best regards
Wang Liang