mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
Fix BootstrapForTesting blowup
This commit fixes an issue with BootstrapForTesting where the common case was to invoke a method with a null parameter that does not accept null.
This commit is contained in:
parent
8c554215e0
commit
1d648a3d46
@ -121,7 +121,7 @@ public class BootstrapForTesting {
|
|||||||
}
|
}
|
||||||
// jacoco coverage output file
|
// jacoco coverage output file
|
||||||
final boolean testsCoverage =
|
final boolean testsCoverage =
|
||||||
Booleans.parseBoolean(System.getProperty("tests.coverage"));
|
Booleans.parseBoolean(System.getProperty("tests.coverage", "false"));
|
||||||
if (testsCoverage) {
|
if (testsCoverage) {
|
||||||
Path coverageDir = PathUtils.get(System.getProperty("tests.coverage.dir"));
|
Path coverageDir = PathUtils.get(System.getProperty("tests.coverage.dir"));
|
||||||
perms.add(new FilePermission(coverageDir.resolve("jacoco.exec").toString(), "read,write"));
|
perms.add(new FilePermission(coverageDir.resolve("jacoco.exec").toString(), "read,write"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user