From a85f6460912e7034973336bc70a5dad00d8594b7 Mon Sep 17 00:00:00 2001 From: Xiang Zhang Date: Thu, 19 May 2022 16:08:39 +0800 Subject: [PATCH] tests: use python3 to run http_api test to fix failed integration_tests (#5473) close pingcap/tiflow#5474 --- tests/integration_tests/http_api/run.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/integration_tests/http_api/run.sh b/tests/integration_tests/http_api/run.sh index 5a9de1279e0..5455250d1f3 100644 --- a/tests/integration_tests/http_api/run.sh +++ b/tests/integration_tests/http_api/run.sh @@ -15,7 +15,7 @@ function run() { return fi - sudo pip install -U requests==2.26.0 + sudo python3 -m pip install -U requests==2.26.0 rm -rf $WORK_DIR && mkdir -p $WORK_DIR @@ -59,15 +59,15 @@ function run() { SINK_URI="mysql://normal:123456@127.0.0.1:3306/" - python $CUR/util/test_case.py check_health $TLS_DIR - python $CUR/util/test_case.py get_status $TLS_DIR + python3 $CUR/util/test_case.py check_health $TLS_DIR + python3 $CUR/util/test_case.py get_status $TLS_DIR - python $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI" + python3 $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI" # wait for changefeed created sleep 2 # test processor query with no attached tables - python $CUR/util/test_case.py get_processor $TLS_DIR + python3 $CUR/util/test_case.py get_processor $TLS_DIR run_sql "CREATE table test.simple0(id int primary key, val int);" run_sql "CREATE table test.\`simple-dash\`(id int primary key, val int);" @@ -108,7 +108,7 @@ function run() { ) for case in ${sequential_cases[@]}; do - python $CUR/util/test_case.py "$case" $TLS_DIR + python3 $CUR/util/test_case.py "$case" $TLS_DIR done cleanup_process $CDC_BINARY