github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/tests/_utils/check_contains (about) 1 #!/bin/bash 2 3 set -eu 4 OUT_DIR=/tmp/tidb_cdc_test 5 6 if ! grep -Eq "$1" "$OUT_DIR/sql_res.$TEST_NAME.txt"; then 7 echo "TEST FAILED: OUTPUT DOES NOT CONTAIN '$1'" 8 echo "____________________________________" 9 cat "$OUT_DIR/sql_res.$TEST_NAME.txt" 10 echo "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" 11 exit 1 12 fi