diff --git a/tests/integration/checkpoint.bats b/tests/integration/checkpoint.bats index 3e5cdf10..0c4241af 100644 --- a/tests/integration/checkpoint.bats +++ b/tests/integration/checkpoint.bats @@ -17,7 +17,7 @@ function teardown() { function setup_pipes() { # The changes to 'terminal' are needed for running in detached mode update_config ' (.. | select(.terminal? != null)) .terminal |= false - | (.. | select(.[]? == "sh")) += ["-c", "for i in `seq 10`; do read xxx || continue; echo ponG $xxx; done"]' + | (.. | select(.[]? == "sh")) += ["-c", "for i in `seq 10`; do read xxx || continue; echo ponG $xxx; done"]' # Create two sets of pipes # for stdout/stderr @@ -76,7 +76,7 @@ function simple_cr() { requires cgroups_v1 # enable CGROUPNS - update_config '.linux.namespaces += [{"type": "cgroup"}]' + update_config '.linux.namespaces += [{"type": "cgroup"}]' simple_cr } @@ -134,7 +134,7 @@ function simple_cr() { setup_pipes # This should not be necessary: https://github.com/checkpoint-restore/criu/issues/575 - update_config '(.. | select(.readonly? != null)) .readonly |= false' + update_config '(.. | select(.readonly? != null)) .readonly |= false' # TCP port for lazy migration port=27277 @@ -268,7 +268,7 @@ function simple_cr() { tmplog2=`basename $tmplog2` # This adds the annotation 'org.criu.config' to set a container # specific CRIU config file. - update_config '.annotations += {"org.criu.config": "'"$tmp"'"}' + update_config '.annotations += {"org.criu.config": "'"$tmp"'"}' # Tell CRIU to use another configuration file mkdir -p /etc/criu