Skip to content

Commit

Permalink
Merge pull request #539 from Luap99/jq-error
Browse files Browse the repository at this point in the history
test: make jq query work on centos stream 9
  • Loading branch information
openshift-merge-bot[bot] authored Nov 6, 2024
2 parents 9d469a9 + 9842cb4 commit a9b8f77
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 a9b8f77

Please sign in to comment.