commit | a7bad77a086482a6e130ddb2b1ebc801d18ffb27 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Fri Jul 26 16:44:17 2013 -0700 |
committer | Shawn Pearce <sop@google.com> | Fri Jul 26 16:45:10 2013 -0700 |
tree | 962bfcf7ada8f26b0d96c72baf8bf1d86ceeabb4 | |
parent | 99854df8c53a5418e8e0ba336096093f9e0f3ea6 [diff] |
Don't fail tests when symlinks are found Buck runs tests in temporary directories and can clean up the test output on its own. Don't complain and fail a test if a symlink is discovered in the path, instead rely on Buck to cleanup later. Change-Id: If450191abc7d0fd378d684e16656623f4b59ea7e
diff --git a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/TempFileUtil.java b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/TempFileUtil.java index 1dad479..ff0ca7b 100644 --- a/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/TempFileUtil.java +++ b/gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/TempFileUtil.java
@@ -29,7 +29,7 @@ public static void recursivelyDelete(File dir) throws IOException { if (!dir.getPath().equals(dir.getCanonicalPath())) { // Directory symlink reaching outside of temporary space. - throw new IOException("Refusing to clear symlink " + dir.getPath()); + return; } File[] contents = dir.listFiles(); if (contents != null) {