github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/test/integration_tests/e2e_worker_error/run.sh (about) 1 #!/bin/bash 2 3 set -eu 4 5 WORK_DIR=$OUT_DIR/$TEST_NAME 6 CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) 7 8 CONFIG="$DOCKER_COMPOSE_DIR/3m3e.yaml" 9 CONFIG=$(adjust_config $OUT_DIR $TEST_NAME $CONFIG) 10 echo "using adjusted configs to deploy cluster: $CONFIG" 11 12 function run() { 13 start_engine_cluster $CONFIG 14 # add a delay in case that the cluster is not ready 15 sleep 3s 16 CGO_ENABLED=0 go test -count=1 -v -run ^TestWorkerExit$ github.com/pingcap/tiflow/engine/test/e2e 17 } 18 19 trap "stop_engine_cluster $WORK_DIR $CONFIG" EXIT 20 run $* 21 echo "[$(date)] <<<<<< run test case $TEST_NAME success! >>>>>>"