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

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


The following commit(s) were added to refs/heads/master by this push:
     new e1ba3ac52a2 fix(cli-it): add IOTDB_HOME into environment (#11363)
e1ba3ac52a2 is described below

commit e1ba3ac52a29750e311584f0761997edc40651b6
Author: CritasWang <[email protected]>
AuthorDate: Mon Oct 23 16:42:30 2023 +0800

    fix(cli-it): add IOTDB_HOME into environment (#11363)
---
 .../src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java
 
b/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java
index 44f2ab6e971..5e3f5bcee32 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/cli/it/StartClientScriptIT.java
@@ -71,6 +71,9 @@ public class StartClientScriptIT extends AbstractScript {
 
   @Override
   protected void testOnWindows() throws IOException {
+    final String homePath =
+        libPath.substring(0, libPath.lastIndexOf(File.separator + "lib" + 
File.separator + "*"));
+
     final String[] output = {
       "Error: Connection Error, please check whether the network is available 
or the server has started. Host is 127.0.0.1, port is 6668."
     };
@@ -90,7 +93,7 @@ public class StartClientScriptIT extends AbstractScript {
             "&",
             "exit",
             "%^errorlevel%");
-    builder.environment().put("CLASSPATH", libPath);
+    builder.environment().put("IOTDB_HOME", homePath);
     testOutput(builder, output, 1);
 
     final String[] output2 = {"Msg: The statement is executed successfully."};
@@ -108,7 +111,7 @@ public class StartClientScriptIT extends AbstractScript {
             "&",
             "exit",
             "%^errorlevel%");
-    builder2.environment().put("CLASSPATH", libPath);
+    builder2.environment().put("IOTDB_HOME", homePath);
     testOutput(builder2, output2, 0);
   }
 

Reply via email to