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.
1 parent 77ead42 commit 4c43461Copy full SHA for 4c43461
tests/integration/events.bats
@@ -87,6 +87,20 @@ function test_events() {
87
done
88
}
89
90
+# See https://github.com/opencontainers/cgroups/pull/24
91
+@test "events --stats with hugetlb" {
92
+ requires cgroups_v2 cgroups_hugetlb
93
+ init_cgroup_paths
94
+
95
+ runc run -d --console-socket "$CONSOLE_SOCKET" test_busybox
96
+ [ "$status" -eq 0 ]
97
98
+ runc events --stats test_busybox
99
100
+ # Ensure hugetlb node is present.
101
+ jq -e '.data.hugetlb // empty' <<<"${lines[0]}"
102
+}
103
104
@test "events --interval default" {
105
test_events
106
0 commit comments