提交 6a9116ca 编写于 作者: W wangjiawei04

fix ci script test=serving

上级 b9d4328d
...@@ -68,7 +68,6 @@ function build_server() { ...@@ -68,7 +68,6 @@ function build_server() {
esac esac
echo "build server $TYPE part finished as expected." echo "build server $TYPE part finished as expected."
cd .. cd ..
rm -rf $DIRNAME
} }
function python_test_fit_a_line() { function python_test_fit_a_line() {
...@@ -104,7 +103,7 @@ function python_test_fit_a_line() { ...@@ -104,7 +103,7 @@ function python_test_fit_a_line() {
} }
function python_run_criteo_ctr_with_cube() { function python_run_criteo_ctr_with_cube() {
TYPE="CPU" local TYPE=$1
yum install -y bc >/dev/null yum install -y bc >/dev/null
cd criteo_ctr_with_cube cd criteo_ctr_with_cube
check_cmd "wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz" check_cmd "wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz"
...@@ -136,7 +135,7 @@ function python_run_test() { ...@@ -136,7 +135,7 @@ function python_run_test() {
# Frist time run, downloading PaddleServing components ... # Frist time run, downloading PaddleServing components ...
python -c "from paddle_serving_server import Server; server = Server(); server.download_bin()" python -c "from paddle_serving_server import Server; server = Server(); server.download_bin()"
python_test_fit_a_line $TYPE 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." echo "test python $TYPE part finished as expected."
cd ../.. cd ../..
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册