Skip to content

Commit

Permalink
test: make jq query work on centos stream 9
Browse files Browse the repository at this point in the history
The syntax is not accepted by older version like on centos stream 9,
this one should work with all versions and thus make the tmt tests on
centos 9 stream pass again.

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Nov 5, 2024
1 parent 9d469a9 commit 9842cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/100-basic-name-resolution.bats
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function teardown() {
run_in_host_netns ip link add test type bridge
run_in_host_netns ip link set test up
run_in_host_netns ip -j addr
link_local_addr=$(jq -r '.[] | select(.ifname=="test").addr_info.[0].local' <<<"$output")
link_local_addr=$(jq -r '.[] | select(.ifname=="test").addr_info[0].local' <<<"$output")

# update our fake netns resolv.conf with the link local address as only nameserver
echo "nameserver $link_local_addr%test" >"$AARDVARK_TMPDIR/resolv.conf"
Expand Down

0 comments on commit 9842cb4

Please sign in to comment.