Skip to content

Commit

Permalink
Enable cgroupv2 integration tests
Browse files Browse the repository at this point in the history
Those needs to be run on the (Vagrant Fedora 31) host
(since we need real systemd running), and so we have
to copy runc binary and bats out of the container
to the vagrant host.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Apr 10, 2020
1 parent 8d1a159 commit 3805bfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ matrix:
- sudo ssh default sudo podman build -t test /vagrant
# Mounting /lib/modules into the container is necessary as CRIU wants to load (via iptables) additional modules
- sudo ssh default sudo podman run --privileged --cgroupns=private -v /lib/modules:/lib/modules:ro test make localunittest
# Copy bats and compiled runc binary from test image to vagrant host
- sudo ssh default 'sudo podman run --rm test tar cf - /usr/local/bin/bats /usr/local/libexec/bats* | sudo tar xf - -C / && sudo podman run --rm test tar cf - runc | sudo tar xf - -C /vagrant'
- sudo ssh default 'cd /vagrant && sudo RUNC_USE_SYSTEMD=yes bats -t tests/integration'
allow_failures:
- go: tip

Expand Down

0 comments on commit 3805bfa

Please sign in to comment.