Skip to content

Commit

Permalink
Revert "Switch to cgroup v2 for extension BATS tests on Lima"
Browse files Browse the repository at this point in the history
This reverts commit a2b57b7.

Signed-off-by: Jan Dubois <[email protected]>
  • Loading branch information
jandubois committed Sep 7, 2023
1 parent e9ddcbc commit 710e7bc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
14 changes: 0 additions & 14 deletions bats/tests/extensions/allow-list.bats
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@ check_extension_installed() { # refute, name

@test 'start container engine' {
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'switch to cgroup v2' {
# TODO TODO TODO This is a workaround because #5363 hasn't been fixed yet
if is_windows; then
skip "Skipped because switching cgroup layout is not needed on Windows"
fi
wait_for_shell
rdctl shell sudo sed -E -i 's/#(rc_cgroup_mode).*/\1="unified"/' /etc/rc.conf
rdctl shutdown
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'wait for container engine' {
wait_for_container_engine
}

Expand Down
14 changes: 0 additions & 14 deletions bats/tests/extensions/containers.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ encoded_id() { # variant

@test 'start container engine' {
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'switch to cgroup v2' {
# TODO TODO TODO This is a workaround because #5363 hasn't been fixed yet
if is_windows; then
skip "Skipped because switching cgroup layout is not needed on Windows"
fi
wait_for_shell
rdctl shell sudo sed -E -i 's/#(rc_cgroup_mode).*/\1="unified"/' /etc/rc.conf
rdctl shutdown
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'wait for container engine' {
wait_for_container_engine
}

Expand Down
14 changes: 0 additions & 14 deletions bats/tests/extensions/install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,6 @@ encoded_id() { # variant

@test 'start container engine' {
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'switch to cgroup v2' {
# TODO TODO TODO This is a workaround because #5363 hasn't been fixed yet
if is_windows; then
skip "Skipped because switching cgroup layout is not needed on Windows"
fi
wait_for_shell
rdctl shell sudo sed -E -i 's/#(rc_cgroup_mode).*/\1="unified"/' /etc/rc.conf
rdctl shutdown
RD_ENV_EXTENSIONS=1 start_container_engine
}

@test 'wait for container engine' {
wait_for_container_engine
}

Expand Down

0 comments on commit 710e7bc

Please sign in to comment.