You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dg...@apache.org on 2019/03/22 15:24:55 UTC

[ignite] branch master updated: IGNITE-11612 Fix of the test. - Fixes #6328.

This is an automated email from the ASF dual-hosted git repository.

dgovorukhin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 68b2207  IGNITE-11612 Fix of the test. - Fixes #6328.
68b2207 is described below

commit 68b220715cbed676ebf94aa6d55d627642d8b447
Author: ibessonov <be...@gmail.com>
AuthorDate: Fri Mar 22 18:24:34 2019 +0300

    IGNITE-11612 Fix of the test. - Fixes #6328.
    
    Signed-off-by: Dmitriy Govorukhin <dm...@gmail.com>
---
 .../uri/scanners/http/GridHttpDeploymentSelfTest.java          | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules/urideploy/src/test/java/org/apache/ignite/spi/deployment/uri/scanners/http/GridHttpDeploymentSelfTest.java b/modules/urideploy/src/test/java/org/apache/ignite/spi/deployment/uri/scanners/http/GridHttpDeploymentSelfTest.java
index 1dc1f36..8529902 100644
--- a/modules/urideploy/src/test/java/org/apache/ignite/spi/deployment/uri/scanners/http/GridHttpDeploymentSelfTest.java
+++ b/modules/urideploy/src/test/java/org/apache/ignite/spi/deployment/uri/scanners/http/GridHttpDeploymentSelfTest.java
@@ -81,7 +81,15 @@ public class GridHttpDeploymentSelfTest extends GridUriDeploymentAbstractSelfTes
 
         hnd.setDirectoriesListed(true);
 
-        File resourseBaseDir = U.resolveIgnitePath(GridTestProperties.getProperty("ant.urideployment.gar.path.tmp"));
+        String garPathTmp = GridTestProperties.getProperty("ant.urideployment.gar.path.tmp");
+
+        File resourseBaseDir = U.resolveIgnitePath(garPathTmp);
+
+        if (resourseBaseDir == null) {
+            resourseBaseDir = new File(U.getIgniteHome(), garPathTmp);
+
+            assertTrue(resourseBaseDir.mkdirs());
+        }
 
         rsrcBase = resourseBaseDir.getPath();