From 3dfa5434fc74288bfa1f52258bef8edde42f5de8 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 30 Mar 2020 15:04:12 -0700 Subject: [PATCH] tests/integration/update.bats: simplify file creation There's no need for an intermediate variable Signed-off-by: Kir Kolyshkin --- tests/integration/update.bats | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration/update.bats b/tests/integration/update.bats index 492d1810d..8d9f5f8d7 100644 --- a/tests/integration/update.bats +++ b/tests/integration/update.bats @@ -164,7 +164,7 @@ EOF check_cgroup_value "pids.max" 10 # reset to initial test value via json file - DATA=$(cat <<"EOF" + cat << EOF > $BATS_TMPDIR/runc-cgroups-integration-test.json { "memory": { "limit": 33554432, @@ -181,8 +181,6 @@ EOF } } EOF -) - echo $DATA > $BATS_TMPDIR/runc-cgroups-integration-test.json runc update -r $BATS_TMPDIR/runc-cgroups-integration-test.json test_update [ "$status" -eq 0 ]