提交 5d04b02f 编写于 作者: B barrierye

fix code

上级 d88a0c52
...@@ -323,6 +323,9 @@ function python_test_bert() { ...@@ -323,6 +323,9 @@ function python_test_bert() {
echo "bert RPC inference pass" echo "bert RPC inference pass"
;; ;;
*) *)
echo "error type"
exit 1
;;
esac esac
echo "test bert $TYPE finished as expected." echo "test bert $TYPE finished as expected."
unset SERVING_BIN unset SERVING_BIN
...@@ -357,6 +360,9 @@ function python_test_imdb() { ...@@ -357,6 +360,9 @@ function python_test_imdb() {
echo "imdb ignore GPU test" echo "imdb ignore GPU test"
;; ;;
*) *)
echo "error type"
exit 1
;;
esac esac
echo "test imdb $TYPE finished as expected." echo "test imdb $TYPE finished as expected."
unset SERVING_BIN unset SERVING_BIN
...@@ -389,6 +395,9 @@ function python_test_lac() { ...@@ -389,6 +395,9 @@ function python_test_lac() {
echo "lac ignore GPU test" echo "lac ignore GPU test"
;; ;;
*) *)
echo "error type"
exit 1
;;
esac esac
echo "test lac $TYPE finished as expected." echo "test lac $TYPE finished as expected."
unset SERVING_BIN unset SERVING_BIN
...@@ -641,6 +650,9 @@ function monitor_test() { ...@@ -641,6 +650,9 @@ function monitor_test() {
ps -ef | grep "pyftpdlib" | grep -v grep | awk '{print $2}' | xargs kill ps -ef | grep "pyftpdlib" | grep -v grep | awk '{print $2}' | xargs kill
;; ;;
*) *)
echo "error type"
exit 1
;;
esac esac
cd .. # pwd: /Serving cd .. # pwd: /Serving
rm -rf _monitor_test rm -rf _monitor_test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册