2016-01-16 4 views
0

Тест junit отлично работает на моей локальной ОС X, но в Jenkins будет ошибка «разрешенные корни». Я пробовал chmod -R 777 *, который не помог. Вопрос: есть ли флаг, который я могу передать JUnit, чтобы явно указать допустимые корни?junit.framework.AssertionFailedError: Импорт невозможен: доступ к файлам за пределами разрешенных корней

1) testExcludes1(com.twitter.intellij.pants.integration.OSSPantsScalaExamplesIntegrationTest) 
       junit.framework.AssertionFailedError: Import failed: File accessed outside allowed roots: file:///export/hdb3/jenkins/workspace/[email protected]/.cache/pants/pants; 
       Allowed roots: [/export/hdb3/jenkins/workspace/[email protected]/.pants.d/intellij/plugins-sandbox/test, /tmp/unitTest_excludes1_569/testExcludes10, /var/lib/jenkins, /export/hdb3/jenkins/workspace/[email protected]/.pants.d/resources/services, /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre, /tmp] 

ответ

Смежные вопросы