Skip to content

Commit

Permalink
Fix shell format
Browse files Browse the repository at this point in the history
The sysctls test needs some shell formatting fixing to make the CI happy
again.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert authored and openshift-cherrypick-robot committed Mar 17, 2022
1 parent d93b2df commit 6e88630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pod.bats
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,14 @@ function teardown() {
start_crio

jq --arg sysctl "1024 65000'+'net.ipv4.ip_forward=0'" \
' .linux.sysctls = {
'.linux.sysctls = {
"net.ipv4.ip_local_port_range": $sysctl,
}' "$TESTDATA"/sandbox_config.json > "$TESTDIR"/sandbox.json

! crictl runp "$TESTDIR"/sandbox.json

jq --arg sysctl "net.ipv4.ip_local_port_range=1024 65000'+'net.ipv4.ip_forward" \
' .linux.sysctls = {
'.linux.sysctls = {
($sysctl): "0",
}' "$TESTDATA"/sandbox_config.json > "$TESTDIR"/sandbox.json

Expand Down

0 comments on commit 6e88630

Please sign in to comment.