Skip to content

Commit

Permalink
Improve tests.config property thread safety (#5645) (#5654)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <widdis@gmail.com>
(cherry picked from commit cc2b704)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: Daniel Widdis <widdis@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and kotwanikunal committed Jan 25, 2023
1 parent 5685356 commit 8885b79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public class BootstrapForTesting {
// java.io.tmpdir
FilePermissionUtils.addDirectoryPath(perms, "java.io.tmpdir", javaTmpDir, "read,readlink,write,delete", false);
// custom test config file
if (Strings.hasLength(System.getProperty("tests.config"))) {
FilePermissionUtils.addSingleFilePath(perms, PathUtils.get(System.getProperty("tests.config")), "read,readlink");
String testConfigFile = System.getProperty("tests.config");
if (Strings.hasLength(testConfigFile)) {
FilePermissionUtils.addSingleFilePath(perms, PathUtils.get(testConfigFile), "read,readlink");
}
// intellij hack: intellij test runner wants setIO and will
// screw up all test logging without it!
Expand Down

0 comments on commit 8885b79

Please sign in to comment.