Some informations are redundant 03/57003/1
authorYang Yu <Gabriel.yuyang@huawei.com>
Fri, 27 Apr 2018 01:42:19 +0000 (09:42 +0800)
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>
Thu, 3 May 2018 08:04:19 +0000 (08:04 +0000)
This patch is to remove the redundant results in Soak throughputs
reports to TestDB

Change-Id: Ib7e95df8353f3aa7b28187d352d5a6a213af2727
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
(cherry picked from commit 2833e627cbf31eb89f313ec167f215c48fa70217)

testsuites/posca/testcase_script/posca_factor_soak_throughputs.py

index 2fd3500..6c6bd44 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())
+                result.append(q.get()[1])
             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())
+            result.append(q.get()[1])
     for item in result:
         vim_pair_success_num += int(item[0])