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