test: Use cgroupfs for tests
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
parent
b9c1d58b36
commit
0d0f651828
2 changed files with 5 additions and 11 deletions
|
@ -709,7 +709,7 @@ function teardown() {
|
|||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
pod_id="$output"
|
||||
oomconfig=$(cat "$TESTDATA"/container_config.json | python -c 'import json,sys;obj=json.load(sys.stdin);obj["image"]["image"] = "mrunalp/oom"; obj["linux"]["resources"]["memory_limit_in_bytes"] = 512000; obj["command"] = ["/oom"]; json.dump(obj, sys.stdout)')
|
||||
oomconfig=$(cat "$TESTDATA"/container_config.json | python -c 'import json,sys;obj=json.load(sys.stdin);obj["image"]["image"] = "mrunalp/oom"; obj["linux"]["resources"]["memory_limit_in_bytes"] = 5120000; obj["command"] = ["/oom"]; json.dump(obj, sys.stdout)')
|
||||
echo "$oomconfig" > "$TESTDIR"/container_config_oom.json
|
||||
run crioctl ctr create --config "$TESTDIR"/container_config_oom.json --pod "$pod_id"
|
||||
echo "$output"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue