mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
docker-test: use host cgroup & network ns
The test/zdtm_mount_cgroups script fails with 'permission denied' when running tests with private cgroup namespace. Using the host network namespace allows us to test criu as if it is running on the host, sharing iptables rules etc. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
e3c0fa7011
commit
5d8ecee0ac
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -373,7 +373,8 @@ docker-build:
|
|||
.PHONY: docker-build
|
||||
|
||||
docker-test:
|
||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup
|
||||
docker run --rm -it --privileged -v /lib/modules:/lib/modules --network=host --cgroupns=host criu-x86_64 \
|
||||
./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup
|
||||
.PHONY: docker-test
|
||||
|
||||
help:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue