summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script/posca_factor_tx_cache_size.py
diff options
context:
space:
mode:
authorYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2016-12-22 02:43:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-22 02:43:25 +0000
commit4c99cce55d24312bd4339d156440f1e95ad04cf2 (patch)
treee1b3aec1ae63b838f2eec95a51b56c5375262fe2 /testsuites/posca/testcase_script/posca_factor_tx_cache_size.py
parentf167a9ebbc5a2a76e7cefe6152c2ba689d6b08e2 (diff)
parentabbd8ce62ba662cd2659589a9996e827d13ad061 (diff)
Merge "Add flake8 style config and for POSCA"
Diffstat (limited to 'testsuites/posca/testcase_script/posca_factor_tx_cache_size.py')
-rw-r--r--testsuites/posca/testcase_script/posca_factor_tx_cache_size.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/posca/testcase_script/posca_factor_tx_cache_size.py b/testsuites/posca/testcase_script/posca_factor_tx_cache_size.py
index a8d1a485..b7d45065 100644
--- a/testsuites/posca/testcase_script/posca_factor_tx_cache_size.py
+++ b/testsuites/posca/testcase_script/posca_factor_tx_cache_size.py
@@ -106,10 +106,10 @@ def posca_run(con_dic):
latency = test_result.find("latency")
posca_output_result(time_new, test_pkt_s_e, test_rx_cache_s_e,
bandwidth, latency, cpu_load)
- if (abs(bandwidth-con_dic['test_throughput'])/con_dic['test_\
+ if (abs(bandwidth - con_dic['test_throughput']) / con_dic['test_\
throughput'] > 0.05) and (latency < con_dic['test_\
latency']) and (cpu_load < con_dic['test_cpu_load']):
- if (abs(bandwidth_tmp-bandwidth)/bandwidth < 0.05):
+ if (abs(bandwidth_tmp - bandwidth) / bandwidth < 0.05):
return True
else:
print("%s,%s") % (bandwidth, test_rx_cache_s_e)