From ed5483769053ef8f7f611b24546b0283d34e58be Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 5 Nov 2020 16:03:21 -0800 Subject: [PATCH] tests/int/update.bats: add checks for runc status Those were missing for some reason, so we did not fail the test in case "runc update" returned an error. Signed-off-by: Kir Kolyshkin --- tests/integration/update.bats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/update.bats b/tests/integration/update.bats index 72a4c2bf5..18adfc0c0 100644 --- a/tests/integration/update.bats +++ b/tests/integration/update.bats @@ -347,6 +347,7 @@ EOF } } EOF + [ "$status" -eq 0 ] runc update -r "$BATS_TMPDIR"/runc-cgroups-integration-test.json test_update [ "$status" -eq 0 ] @@ -448,6 +449,7 @@ EOF } } EOF + [ "$status" -eq 0 ] check_cgroup_value "cpu.rt_period_us" "$root_period" check_cgroup_value "cpu.rt_runtime_us" 500001 @@ -463,6 +465,7 @@ EOF check_cgroup_value "cpu.rt_runtime_us" 500001 runc update test_update_rt --cpu-rt-period 900001 --cpu-rt-runtime 600001 + [ "$status" -eq 0 ] check_cgroup_value "cpu.rt_period_us" 900001 check_cgroup_value "cpu.rt_runtime_us" 600001