tests/integration/update.bats: simplify file creation
There's no need for an intermediate variable Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
b8b46419ce
commit
3dfa5434fc
|
@ -164,7 +164,7 @@ EOF
|
||||||
check_cgroup_value "pids.max" 10
|
check_cgroup_value "pids.max" 10
|
||||||
|
|
||||||
# reset to initial test value via json file
|
# reset to initial test value via json file
|
||||||
DATA=$(cat <<"EOF"
|
cat << EOF > $BATS_TMPDIR/runc-cgroups-integration-test.json
|
||||||
{
|
{
|
||||||
"memory": {
|
"memory": {
|
||||||
"limit": 33554432,
|
"limit": 33554432,
|
||||||
|
@ -181,8 +181,6 @@ EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
|
||||||
echo $DATA > $BATS_TMPDIR/runc-cgroups-integration-test.json
|
|
||||||
|
|
||||||
runc update -r $BATS_TMPDIR/runc-cgroups-integration-test.json test_update
|
runc update -r $BATS_TMPDIR/runc-cgroups-integration-test.json test_update
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
|
Loading…
Reference in New Issue