java - junit.framework.AssertionFailedError: Import failed: File accessed outside allowed roots -


a junit test runs fine on local os x, there error "allowed roots" in jenkins. i've tried chmod -r 777 *, did not help. question: there flag can pass junit explicitly specify allowed roots?

1) testexcludes1(com.twitter.intellij.pants.integration.osspantsscalaexamplesintegrationtest)                  junit.framework.assertionfailederror: import failed: file accessed outside allowed roots: file:///export/hdb3/jenkins/workspace/intellij_plugin_ci_trigger@2/.cache/pants/pants;                  allowed roots: [/export/hdb3/jenkins/workspace/intellij_plugin_ci_trigger@2/.pants.d/intellij/plugins-sandbox/test, /tmp/unittest_excludes1_569/testexcludes10, /var/lib/jenkins, /export/hdb3/jenkins/workspace/intellij_plugin_ci_trigger@2/.pants.d/resources/services, /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre, /tmp] 

turns out virtualfile system access issue intellij. answer found @ https://youtrack.jetbrains.com/issue/idea-129297#


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -