MARMOTTA-508 - skip test if creating the report-dir fails.

Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/97ba8cb9
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/97ba8cb9
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/97ba8cb9

Branch: refs/heads/develop
Commit: 97ba8cb9a10b9f71ac48cd160fc18bff73d10376
Parents: 28913e9
Author: Jakob Frank <[email protected]>
Authored: Tue Sep 23 15:17:58 2014 +0200
Committer: Jakob Frank <[email protected]>
Committed: Wed Sep 24 17:39:18 2014 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/97ba8cb9/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java
----------------------------------------------------------------------
diff --git 
a/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java
 
b/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java
index 527906f..f0492c5 100644
--- 
a/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java
+++ 
b/platform/marmotta-ldp/src/test/java/org/apache/marmotta/platform/ldp/LdpSuiteTest.java
@@ -164,7 +164,7 @@ public class LdpSuiteTest {
         String relPath = 
getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
         File targetDir = new File(relPath, "ldp-testsuite");
         if(!targetDir.exists()) {
-            targetDir.mkdir();
+            Assume.assumeTrue("Could not create report-directory", 
targetDir.mkdir());
         }
         return targetDir;
     }

Reply via email to