未验证 提交 07199bd9 编写于 作者: H huangjianhui 提交者: GitHub

Update test_fit_a_line.py

Kill c++ service when env_check started
上级 1ee59750
...@@ -20,12 +20,13 @@ class TestFitALine(object): ...@@ -20,12 +20,13 @@ class TestFitALine(object):
serving_util.check_model_data_exist() serving_util.check_model_data_exist()
self.get_truth_val_by_inference(self) self.get_truth_val_by_inference(self)
self.serving_util = serving_util self.serving_util = serving_util
self.serving_util.release('service')
def teardown_method(self): def teardown_method(self):
print_log(["stderr.log", "stdout.log", print_log(["stderr.log", "stdout.log",
"log/serving.ERROR", "PipelineServingLogs/pipeline.log"], iden="after predict") "log/serving.ERROR", "PipelineServingLogs/pipeline.log"], iden="after predict")
kill_process(9494) kill_process(9494)
self.serving_util.release() self.serving_util.release('service')
def get_truth_val_by_inference(self): def get_truth_val_by_inference(self):
try: try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册