polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [1/9] polygene-java git commit: Performance Tests - allow multiple executions in one go
Date Mon, 10 Apr 2017 11:54:41 GMT
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 <paulmerlin@apache.org>
Authored: Mon Apr 10 11:55:29 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
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." );
         }


Mime
View raw message