aboutsummaryrefslogtreecommitdiffstats
path: root/restful_server
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-07 15:46:40 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2016-10-07 15:46:40 +0800
commitf43d5b6706c547770917fd879804d08b36f6912b (patch)
tree071dcf7bbd8a4689263b26141140891690eb9fd5 /restful_server
parent33d953b9c4a7ecada927af3b1666d15e3f389beb (diff)
Correct spelling error in function name
Change-Id: I470a3266d68d19c7f7074cd6325169d94384d5e0 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'restful_server')
-rw-r--r--restful_server/db.py2
-rw-r--r--restful_server/qtip_server.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/restful_server/db.py b/restful_server/db.py
index cf6ebfbb..074d4a2d 100644
--- a/restful_server/db.py
+++ b/restful_server/db.py
@@ -91,6 +91,6 @@ def stop_thread(job_id):
del threads[job_id]
-def update_benmark_state_in_state_detail(job_id, benchmark, benchmark_state):
+def update_benchmark_state(job_id, benchmark, benchmark_state):
filter(lambda x: x["benchmark"] == benchmark,
get_job_info(job_id)["state_detail"])[0]['state'] = benchmark_state
diff --git a/restful_server/qtip_server.py b/restful_server/qtip_server.py
index 734a471c..19a57083 100644
--- a/restful_server/qtip_server.py
+++ b/restful_server/qtip_server.py
@@ -162,14 +162,14 @@ default is 'compute'
for benchmark in benchmarks_list:
if db.is_job_timeout(job_id) or stop_event.is_set():
break
- db.update_benmark_state_in_state_detail(job_id, benchmark, 'processing')
+ db.update_benchmark_state(job_id, benchmark, 'processing')
result = args_handler.prepare_and_run_benchmark(installer_type,
'/home',
args_handler.get_benchmark_path(pod_name,
suite_name,
benchmark))
db.update_job_result_detail(job_id, benchmark, copy(result))
- db.update_benmark_state_in_state_detail(job_id, benchmark, 'finished')
+ db.update_benchmark_state(job_id, benchmark, 'finished')
db.finish_job(job_id)