You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/06 01:00:47 UTC

[iotdb] branch test_travis updated: open test whether the port is closed on travis

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

hxd pushed a commit to branch test_travis
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/test_travis by this push:
     new 35afdae  open test whether the port is closed on travis
35afdae is described below

commit 35afdaec783cb3ec001e1d30aed9ed8ba4937579
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Fri Nov 6 09:00:15 2020 +0800

    open test whether the port is closed on travis
---
 .travis.yml                                                          | 2 +-
 server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a871f33..5426670 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -174,7 +174,7 @@ script:
     - mvn -B apache-rat:check
     # Output something every 10 minutes or Travis kills the job
     - while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
-    - mvn -B clean test integration-test
+    - mvn -B clean test integration-test -Dtest.port.closed=true
     # Killing background sleep loop
     - kill %1
 
diff --git a/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java b/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index 6bba93d..7c2e12c 100644
--- a/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -73,7 +73,7 @@ public class EnvironmentUtils {
 
   private static IoTDB daemon;
 
-  public static boolean examinePorts = false;
+  public static boolean examinePorts = Boolean.valueOf(System.getProperty("test.port.closed", "false"));
 
   public static void cleanEnv() throws IOException, StorageEngineException {
     logger.warn("EnvironmentUtil cleanEnv...");