2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

jenkins: add script to create a test container

We want to execute tests in an isolated environment

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Vagin
2015-11-10 16:36:00 +03:00
committed by Pavel Emelyanov
parent 20088c4fcc
commit 1c1795412e
2 changed files with 10 additions and 0 deletions

7
test/jenkins/_run_ct Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
mount --make-rprivate /
umount -l /proc
mount -t proc proc /proc/
exec "$@"

3
test/jenkins/run_ct Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
unshare --mount --pid --fork -- $(readlink -f `dirname $0`/_run_ct) "$@"