github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/tests/integration_tests/_utils/check_etcd_meta_not_exist (about) 1 #!/bin/bash 2 set -eux 3 4 # parameter 1: key_prefix 5 # parameter 2: meta_message 6 7 key_prefix=$1 8 message=$2 9 10 info=$(etcdctl get ${key_prefix} --prefix --keys-only) 11 if [[ "$info" =~ "$message" ]]; then 12 echo "${message} contains in etcd ${info}" 13 echo "check failed" 14 exit 1 15 fi 16 17 echo "check pass" 18 exit 0