We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59ceb0d + 1999baa commit 77718dcCopy full SHA for 77718dc
test/infra_ctr_cpuset.bats
@@ -1,4 +1,5 @@
1
#!/usr/bin/env bats
2
+# vim:set ft=bash :
3
4
load helpers
5
@@ -17,4 +18,11 @@ function teardown() {
17
18
output=$(crictl inspectp -o yaml "$pod_id")
19
[[ "$output" = *"cpus: \"0\""* ]]
20
check_conmon_cpuset "$pod_id" '0'
21
+
22
+ # Ensure the container gets the appropriate taskset
23
+ ctr_id=$(crictl create "$pod_id" "$TESTDATA"/container_redis.json "$TESTDATA"/sandbox_config.json)
24
+ ctr_output=$(crictl inspect -o json "$ctr_id")
25
+ ctr_pid=$(jq -r '.info.pid' <<< "$ctr_output")
26
+ ctr_taskset=$(taskset -p "$ctr_pid")
27
+ [[ ${ctr_taskset#*current affinity mask: } = 1 ]]
28
}
0 commit comments