On 11/2/2016 4:00 PM, Rishabh Patel wrote: > Hello, I downloaded a tar, tagged as 6.2.1 from Github. Upon doing > "ant test" from lucene, all tests pass, however they repeatedly fail > from the Solr folder. The tests are running on a Ubuntu 14.04 box with > Java 8. These are the truncated statements from the output: <snip> > [junit4] FAILURE 0.08s J3 | TestCoreDiscovery.testSolrHomeNotReadable > <<< [junit4] > Throwable #1: java.lang.AssertionError: Should have > thrown an exception here <snip> > Any inputs on how to fix this?
Are you running the tests as root? That particular test will probably always fail if you run as root, because root is generally able to read/write to anything, even if the test takes steps to limit permissions. The assertion message probably should mention this. Run tests as a regular user. Note to self and other devs: the test class uses File extensively. Look into whether or not it can be updated to NIO2. Thanks, Shawn