[CRIU] [PATCH] travis: set permissions for test/, test/static/, test/transition

Andrei Vagin avagin at openvz.org
Wed Aug 31 12:50:30 PDT 2016


From: Andrei Vagin <avagin at virtuozzo.com>

We need to allow read/write access for these directories to execute
tests in user namespaces. zdtm.py does this too, but it is racy if
we run a few tests in parallel.

------------------------ grep Error ------------------------
(00.748406)      5: Error (criu/files-reg.c:1487): File zdtm/static has bad mode 040777 (expect 040775)
(00.752027)      1: Error (criu/cr-restore.c:1132): 5 exited, status=1
(00.790562) Error (criu/cr-restore.c:1135): 88 killed by signal 9: Killed
(00.790623) Error (criu/cr-restore.c:2019): Restoring FAILED.
------------------------ ERROR OVER ------------------------

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 scripts/travis/travis-tests | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests
index 1f8d9f9..64b64a2 100755
--- a/scripts/travis/travis-tests
+++ b/scripts/travis/travis-tests
@@ -29,6 +29,10 @@ export SKIP_PREP=1
 # https://github.com/xemul/criu/issues/207
 export CRIU_PMC_OFF=1
 
+chmod 0777 test/
+chmod 0777 test/zdtm/static
+chmod 0777 test/zdtm/transition
+
 ./test/zdtm.py run -a -x 'cgroup*' -p 2
 
 bash ./test/jenkins/criu-fault.sh
-- 
2.7.4



More information about the CRIU mailing list