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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 2b9d8542418 [regression-test](fix) fix global vars (#51424)
2b9d8542418 is described below

commit 2b9d854241890ee725182e3ad7d1a64b612ed45c
Author: shuke <[email protected]>
AuthorDate: Tue Jun 3 15:33:21 2025 +0800

    [regression-test](fix) fix global vars (#51424)
    
    ### What problem does this PR solve?
    
    Issue Number: close #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test <!-- At least one of them must be included. -->
        - [x] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [ ] No need to test or manual test. Explain why:
    - [ ] This is a refactor/code format and no logic has been changed.
            - [ ] Previous test can cover this change.
            - [ ] No code files have been changed.
            - [ ] Other reason <!-- Add your reason?  -->
    
    - Behavior changed:
        - [x] No.
        - [ ] Yes. <!-- Explain the behavior change -->
    
    - Does this need documentation?
        - [x] No.
    - [ ] Yes. <!-- Add document PR link here. eg:
    https://github.com/apache/doris-website/pull/1214 -->
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label <!-- Add branch pick label that this PR
    should merge into -->
---
 .../test_single_compaction_with_variant_inverted_index.groovy     | 8 ++++----
 .../suites/compaction/test_single_replica_compaction.groovy       | 6 +++---
 .../suites/insert_p0/insert_group_commit_with_exception.groovy    | 2 +-
 .../suites/inverted_index_p0/test_index_like_select.groovy        | 4 ++--
 .../suites/inverted_index_p2/test_variant_index_format_v1.groovy  | 2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)

diff --git 
a/regression-test/suites/compaction/test_single_compaction_with_variant_inverted_index.groovy
 
b/regression-test/suites/compaction/test_single_compaction_with_variant_inverted_index.groovy
index 48f5cbdbd62..a6a1e46a361 100644
--- 
a/regression-test/suites/compaction/test_single_compaction_with_variant_inverted_index.groovy
+++ 
b/regression-test/suites/compaction/test_single_compaction_with_variant_inverted_index.groovy
@@ -54,7 +54,7 @@ suite("test_single_compaction_with_variant_inverted", "p2, 
nonConcurrent") {
 
         String command = sb.toString()
         logger.info(command)
-        process = command.execute()
+        def process = command.execute()
         code = process.waitFor()
         err = IOGroovyMethods.getText(new BufferedReader(new 
InputStreamReader(process.getErrorStream())));
         out = process.getText()
@@ -75,7 +75,7 @@ suite("test_single_compaction_with_variant_inverted", "p2, 
nonConcurrent") {
 
         String command = sb.toString()
         logger.info(command)
-        process = command.execute()
+        def process = command.execute()
         code = process.waitFor()
         err = IOGroovyMethods.getText(new BufferedReader(new 
InputStreamReader(process.getErrorStream())));
         out = process.getText()
@@ -97,7 +97,7 @@ suite("test_single_compaction_with_variant_inverted", "p2, 
nonConcurrent") {
 
             String command = sb.toString()
             logger.info(command)
-            process = command.execute()
+            def process = command.execute()
             code = process.waitFor()
             out = process.getText()
             logger.info("Get compaction status: code=" + code + ", out=" + out)
@@ -118,7 +118,7 @@ suite("test_single_compaction_with_variant_inverted", "p2, 
nonConcurrent") {
 
         String command = sb.toString()
         logger.info(command)
-        process = command.execute()
+        def process = command.execute()
         code = process.waitFor()
         out = process.getText()
         logger.info("Get tablet status: code=" + code + ", out=" + out)
diff --git 
a/regression-test/suites/compaction/test_single_replica_compaction.groovy 
b/regression-test/suites/compaction/test_single_replica_compaction.groovy
index 16e7bc8d9a3..bdf388bd4da 100644
--- a/regression-test/suites/compaction/test_single_replica_compaction.groovy
+++ b/regression-test/suites/compaction/test_single_replica_compaction.groovy
@@ -114,9 +114,9 @@ suite("test_single_compaction_p2", "p2") {
 
         String command = sb.toString()
         logger.info(command)
-        process = command.execute()
-        code = process.waitFor()
-        out = process.getText()
+        def process = command.execute()
+        def code = process.waitFor()
+        def out = process.getText()
         logger.info("Get compaction status: code=" + code + ", out=" + out)
         assertEquals(code, 0)
         def tabletStatus = parseJson(out.trim())
diff --git 
a/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy 
b/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
index 542ab571cd3..f1896716c79 100644
--- a/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
+++ b/regression-test/suites/insert_p0/insert_group_commit_with_exception.groovy
@@ -102,7 +102,7 @@ suite("insert_group_commit_with_exception", 
"nonConcurrent") {
                 //}
             }
 
-            result = sql """ insert into ${table} values(3, 'c', 30)  """
+            def result = sql """ insert into ${table} values(3, 'c', 30)  """
             logger.info("insert result: " + result)
 
             // insert into with column
diff --git 
a/regression-test/suites/inverted_index_p0/test_index_like_select.groovy 
b/regression-test/suites/inverted_index_p0/test_index_like_select.groovy
index 975fac2eaa5..00c84018253 100644
--- a/regression-test/suites/inverted_index_p0/test_index_like_select.groovy
+++ b/regression-test/suites/inverted_index_p0/test_index_like_select.groovy
@@ -161,8 +161,8 @@ suite("test_index_like_select", "inverted_index_select"){
         // case5 test int colume cannot use like
         def int_colume_like_result = "fail"
         try {
-            drop_result = sql "select * from ${indexTbName1} where 
${int_colume1} like 9"
-            drop_index_twice_result = 'success'
+            def drop_result = sql "select * from ${indexTbName1} where 
${int_colume1} like 9"
+            int_colume_like_result = 'success'
         } catch(Exception ex) {
             logger.info("int colume should not match succ, result: " + ex)
         }
diff --git 
a/regression-test/suites/inverted_index_p2/test_variant_index_format_v1.groovy 
b/regression-test/suites/inverted_index_p2/test_variant_index_format_v1.groovy
index 1105776bde4..db2db50eec9 100644
--- 
a/regression-test/suites/inverted_index_p2/test_variant_index_format_v1.groovy
+++ 
b/regression-test/suites/inverted_index_p2/test_variant_index_format_v1.groovy
@@ -86,7 +86,7 @@ suite("test_variant_index_format_v1", "p2, nonConcurrent") {
     def backendId_to_backendHttpPort = [:]
     getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort);
 
-    tablets = sql_return_maparray """ show tablets from ${table_name}; """
+    def tablets = sql_return_maparray """ show tablets from ${table_name}; """
     String tablet_id = tablets[0].TabletId
     String backend_id = tablets[0].BackendId
     String ip = backendId_to_backendIP.get(backend_id)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to