Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09B55200C52 for ; Mon, 10 Apr 2017 13:54:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0847E160BAF; Mon, 10 Apr 2017 11:54:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 50B60160B85 for ; Mon, 10 Apr 2017 13:54:42 +0200 (CEST) Received: (qmail 79589 invoked by uid 500); 10 Apr 2017 11:54:41 -0000 Mailing-List: contact commits-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list commits@polygene.apache.org Received: (qmail 79577 invoked by uid 99); 10 Apr 2017 11:54:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 11:54:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6D331DFF9F; Mon, 10 Apr 2017 11:54:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: paulmerlin@apache.org To: commits@polygene.apache.org Date: Mon, 10 Apr 2017 11:54:41 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/9] polygene-java git commit: Performance Tests - allow multiple executions in one go archived-at: Mon, 10 Apr 2017 11:54:43 -0000 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 Authored: Mon Apr 10 11:55:29 2017 +0200 Committer: Paul Merlin 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." ); }