I have a Spring Boot project which passes all it's tests under the
mvn clean install command in Windows 10. The same exact code base, against the same database, has some test case failures when executing
mvn clean install in Ubuntu 16.04. I traced the problem to a directory not being created by the code inside a failing test case using the
mkdirs() function. I don't know why, I mean, I own the project so I wouldn't think it's a permissions issue. I cloned the project in Ubuntu from the remote repository using Intellij IDEA's built in Git functionality. Many of the other test cases (hundreds of them) are passing but a few fail and they are all related to this
mkdirs() issue. Just to reiterate, the problem only exists in Ubuntu 16.04, not in Windows 10 where all tests pass. If more information is needed please let me know I'll provide.
Is there any way to resolve it without altering the code?