From f3ad6375767108f2b12dac88b9fdddc6622c31f8 Mon Sep 17 00:00:00 2001 From: haoranchen Date: Sat, 11 Mar 2023 10:38:21 +0800 Subject: [PATCH] ci:Specify the version of the python connector (#20408) * ci:Specify the version of the python connector * ci:Specify the version of the python connector * ci:Specify the version of the python connector * ci:Specify the version of the python connector * ci:Specify the version of the python connector * ci:Specify the version of the windows python connector --- Jenkinsfile2 | 5 ++--- tests/parallel_test/run_case.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 0177c57538..715a9283d6 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -313,7 +313,8 @@ def pre_test_build_win() { bat ''' cd %WIN_CONNECTOR_ROOT% python.exe -m pip install --upgrade pip - python -m pip install . + python -m pip uninstall taospy -y + python -m pip install taospy==2.7.3 xcopy /e/y/i/f %WIN_INTERNAL_ROOT%\\debug\\build\\lib\\taos.dll C:\\Windows\\System32 ''' return 1 @@ -331,8 +332,6 @@ def run_win_test() { bat ''' echo "windows test ..." cd %WIN_CONNECTOR_ROOT% - python.exe -m pip install --upgrade pip - python -m pip install . xcopy /e/y/i/f %WIN_INTERNAL_ROOT%\\debug\\build\\lib\\taos.dll C:\\Windows\\System32 ls -l C:\\Windows\\System32\\taos.dll time /t diff --git a/tests/parallel_test/run_case.sh b/tests/parallel_test/run_case.sh index 08698a15f7..dfbb2b2ede 100755 --- a/tests/parallel_test/run_case.sh +++ b/tests/parallel_test/run_case.sh @@ -69,13 +69,18 @@ ulimit -c unlimited md5sum /usr/lib/libtaos.so.1 md5sum /home/TDinternal/debug/build/lib/libtaos.so + +#define taospy 2.7.3 +pip3 list|grep taospy +pip3 uninstall taospy -y +pip3 install taospy==2.7.3 + $TIMEOUT_CMD $cmd RET=$? echo "cmd exit code: $RET" md5sum /usr/lib/libtaos.so.1 md5sum /home/TDinternal/debug/build/lib/libtaos.so -#define taospy 2.7.3 -pip3 install taospy==2.7.3 + if [ $RET -ne 0 ]; then pwd -- GitLab