This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 1926239f09 [improvement](test) add --conf option for
run-regression-test.sh for custom config file (#15287)
1926239f09 is described below
commit 1926239f09da6bf3788399af3eca2c9bd6c964f6
Author: Kang <[email protected]>
AuthorDate: Fri Dec 23 16:43:18 2022 +0800
[improvement](test) add --conf option for run-regression-test.sh for custom
config file (#15287)
* add --conf option for run-regression-test.sh for custom config file
* fix shell check error
---
run-regression-test.sh | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/run-regression-test.sh b/run-regression-test.sh
index 41348bac95..df707c09ed 100755
--- a/run-regression-test.sh
+++ b/run-regression-test.sh
@@ -90,6 +90,11 @@ else
TEAMCITY=1
shift
;;
+ --conf)
+ CUSTOM_CONFIG_FILE="$2"
+ shift
+ shift
+ ;;
--run)
RUN=1
shift
@@ -121,7 +126,12 @@ fi
export MVN_CMD
CONF_DIR="${DORIS_HOME}/regression-test/conf"
-CONFIG_FILE="${CONF_DIR}/regression-conf.groovy"
+if [[ -n "${CUSTOM_CONFIG_FILE}" ]] && [[ -f "${CUSTOM_CONFIG_FILE}" ]]; then
+ CONFIG_FILE="${CUSTOM_CONFIG_FILE}"
+ echo "Using custom config file ${CONFIG_FILE}"
+else
+ CONFIG_FILE="${CONF_DIR}/regression-conf.groovy"
+fi
LOG_CONFIG_FILE="${CONF_DIR}/logback.xml"
FRAMEWORK_SOURCE_DIR="${DORIS_HOME}/regression-test/framework"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]