From a654e551c9c99ca6fa8e9b8bfc4044bd175ce9d0 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 31 Aug 2016 22:50:00 +0300 Subject: [PATCH] travis: set permissions for test/, test/static/, test/transition 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 Signed-off-by: Pavel Emelyanov --- scripts/travis/travis-tests | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/travis/travis-tests b/scripts/travis/travis-tests index c3a316068..699adb0d4 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