diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-03 03:24:28 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-03 03:24:28 +0000 |
commit | e45819fcb4a96649a4030db7684f140d5ca46735 (patch) | |
tree | 544dac3e30a0448eabdc50add41aa3a18982d9f1 /0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch | |
parent | 1a71e3afebb4b43be63949dcc8e882fe7643f13b (diff) |
automatic import of iSuladopeneuler24.03_LTS
Diffstat (limited to '0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch')
-rw-r--r-- | 0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch b/0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch new file mode 100644 index 0000000..1568edb --- /dev/null +++ b/0032-add-test-that-isulad-cannot-set-cpu_rt-parameters-wh.patch @@ -0,0 +1,30 @@ +From 1ab0f4608fb749b50aa6f8d8188db23aa8a6e1ac Mon Sep 17 00:00:00 2001 +From: zhongtao <zhongtao17@huawei.com> +Date: Thu, 1 Feb 2024 10:48:45 +0800 +Subject: [PATCH 32/43] add test that isulad cannot set cpu_rt parameters when + adding cgroup v2 + +Signed-off-by: zhongtao <zhongtao17@huawei.com> +--- + CI/test_cases/container_cases/cpu_rt.sh | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/CI/test_cases/container_cases/cpu_rt.sh b/CI/test_cases/container_cases/cpu_rt.sh +index bdc43a5e..23d3baed 100755 +--- a/CI/test_cases/container_cases/cpu_rt.sh ++++ b/CI/test_cases/container_cases/cpu_rt.sh +@@ -106,7 +106,10 @@ function test_kernel_without_cpurt() + + msg_info "${test} starting..." + +- start_isulad_without_valgrind --cpu-rt-period 1000000 --cpu-rt-runtime 950000 ++ isulad --cpu-rt-period 1000000 --cpu-rt-runtime 950000 2>&1 | grep 'Your kernel does not support cgroup rt period' ++ [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - kernel does not support cpu-rt, but start isulad with cpu-rt success" && ((ret++)) ++ ++ start_isulad_without_valgrind + + isula pull ${image} + [[ $? -ne 0 ]] && msg_err "${FUNCNAME[0]}:${LINENO} - failed to pull image: ${image}" && return ${FAILURE} +-- +2.34.1 + |