bug-fix: fix key error in soak throughputs CI 43/57143/1
authorYang Yu <Gabriel.yuyang@huawei.com>
Tue, 8 May 2018 06:22:17 +0000 (14:22 +0800)
committerYang Yu <Gabriel.yuyang@huawei.com>
Tue, 8 May 2018 06:22:17 +0000 (14:22 +0800)
In the redundant information deleting patch, results of each
thread running is removed from message Queue resulting in
counting the overall success threads in error status

Change-Id: I3d12ddcc3ef996fca509741544a0f088428e948e
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
testsuites/posca/testcase_script/posca_factor_soak_throughputs.py

index 6c6bd44..2fd3500 100644 (file)
@@ -162,7 +162,7 @@ def run(test_config):
         for wait_time in xrange(0, int(vim_pair_lazy_cre_delay)):
             time.sleep(1)
             while not q.empty():
-                result.append(q.get()[1])
+                result.append(q.get())
             for one_result in result:
                 if '0' == one_result[0]:
                     vim_pair_error = True
@@ -172,7 +172,7 @@ def run(test_config):
     for one_thread in threadings:
         one_thread.join()
     while not q.empty():
-            result.append(q.get()[1])
+            result.append(q.get())
     for item in result:
         vim_pair_success_num += int(item[0])