Repository: polygene-java
Updated Branches:
  refs/heads/develop 425af3228 -> 4f2bcc307


Performance Tests - allow multiple executions in one go

Perf report directory creation did not allow to run several tests and
failed. This commit fix this.


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/bf66ab27
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/bf66ab27
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/bf66ab27

Branch: refs/heads/develop
Commit: bf66ab2707d864385b9fe4e32833f3f5133fb73a
Parents: 425af32
Author: Paul Merlin <[email protected]>
Authored: Mon Apr 10 11:55:29 2017 +0200
Committer: Paul Merlin <[email protected]>
Committed: Mon Apr 10 11:55:29 2017 +0200

----------------------------------------------------------------------
 .../entitystore/AbstractEntityStorePerformanceTest.java            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/bf66ab27/tests/performance/src/main/java/org/apache/polygene/test/performance/entitystore/AbstractEntityStorePerformanceTest.java
----------------------------------------------------------------------
diff --git 
a/tests/performance/src/main/java/org/apache/polygene/test/performance/entitystore/AbstractEntityStorePerformanceTest.java
 
b/tests/performance/src/main/java/org/apache/polygene/test/performance/entitystore/AbstractEntityStorePerformanceTest.java
index 9dfb9c3..69d1f69 100644
--- 
a/tests/performance/src/main/java/org/apache/polygene/test/performance/entitystore/AbstractEntityStorePerformanceTest.java
+++ 
b/tests/performance/src/main/java/org/apache/polygene/test/performance/entitystore/AbstractEntityStorePerformanceTest.java
@@ -298,7 +298,7 @@ public abstract class AbstractEntityStorePerformanceTest
         throws IOException
     {
         File dir = new File( "build/reports/perf/" );
-        if( !dir.mkdirs() )
+        if( !dir.exists() && !dir.mkdirs() )
         {
             System.out.println( "Couldn't create Performance result 
directory." );
         }

Reply via email to