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
commit 21e412393bfbee88d1e04d5003a53548758bc2af Author: kkop <[email protected]> AuthorDate: Fri Mar 8 19:30:43 2024 +0800 [enhancement] add_method_for_schemachange (#31849) --- .../groovy/org/apache/doris/regression/suite/Suite.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy index 109b1c2a76c..6e32bbfd607 100644 --- a/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy +++ b/regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy @@ -546,6 +546,17 @@ class Suite implements GroovyInterceptable { } } + + void expectException(Closure userFunction, String tableName, String errorMessage = null) { + try { + userFunction() + } catch (Exception e) { + if (e.getMessage()!= errorMessage) { + throw e + } + } + } + String getBrokerName() { String brokerName = context.config.otherConfigs.get("brokerName") return brokerName --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
