From 6a9116ca89b538b7cd71952fdf7b7431ddaa4ff6 Mon Sep 17 00:00:00 2001 From: wangjiawei04 Date: Fri, 20 Mar 2020 08:11:49 +0000 Subject: [PATCH] fix ci script test=serving --- tools/serving_build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/serving_build.sh b/tools/serving_build.sh index 0f245890..0719a2e9 100644 --- a/tools/serving_build.sh +++ b/tools/serving_build.sh @@ -68,7 +68,6 @@ function build_server() { esac echo "build server $TYPE part finished as expected." cd .. - rm -rf $DIRNAME } function python_test_fit_a_line() { @@ -104,7 +103,7 @@ function python_test_fit_a_line() { } function python_run_criteo_ctr_with_cube() { - TYPE="CPU" + local TYPE=$1 yum install -y bc >/dev/null cd criteo_ctr_with_cube check_cmd "wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz" @@ -136,7 +135,7 @@ function python_run_test() { # Frist time run, downloading PaddleServing components ... python -c "from paddle_serving_server import Server; server = Server(); server.download_bin()" python_test_fit_a_line $TYPE - python_run_criteo_ctr_with_cube + python_run_criteo_ctr_with_cube $TYPE echo "test python $TYPE part finished as expected." cd ../.. } -- GitLab