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

dataroaring pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new e01b531254 [feature](regression) return only if all sqls inside one 
sql file run out (#17762)
e01b531254 is described below

commit e01b531254e6cb68805f82dd066198aee5c8e9a0
Author: AlexYue <[email protected]>
AuthorDate: Tue Mar 14 10:48:12 2023 +0800

    [feature](regression) return only if all sqls inside one sql file run out 
(#17762)
---
 .../org/apache/doris/regression/suite/ScriptSource.groovy     | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/ScriptSource.groovy
 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/ScriptSource.groovy
index 7c47b22a55..47f796fb61 100644
--- 
a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/ScriptSource.groovy
+++ 
b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/ScriptSource.groovy
@@ -78,12 +78,21 @@ class SqlFileSource implements ScriptSource {
             Object run() {
                 suite(suiteName, groupName) {
                     String tag = suiteName
+                    String exceptionStr = ""
                     boolean order = suiteName.endsWith("_order")
                     List<String> sqls = getSqls(file.text)
+                    log.info("Try to execute group: ${groupName} suite: 
${suiteName} with ${sqls.size()} stmts")
                     for (int i = 0; i < sqls.size(); ++i) {
                         String singleSql = sqls.get(i)
                         String tagName = (i == 0) ? tag : "${tag}_${i + 1}"
-                        quickTest(tagName, singleSql, order)
+                        try {
+                            quickTest(tagName, singleSql, order)
+                        } catch (Throwable e) {
+                            exceptionStr += "\n${e.getMessage()}\n"
+                        }
+                    }
+                    if (exceptionStr.size() != 0) {
+                        throw new IllegalStateException("exceptions : 
${exceptionStr}")
                     }
                 }
             }


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

Reply via email to