summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script/posca_factor_rx_cache_size.py
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2016-12-20 00:37:59 +0800
committeryuyang <Gabriel.yuyang@huawei.com>2016-12-21 20:21:46 +0800
commitabbd8ce62ba662cd2659589a9996e827d13ad061 (patch)
tree28d1e88caab88f631bda6cdba9bffad4e6e5f8b2 /testsuites/posca/testcase_script/posca_factor_rx_cache_size.py
parent32fc31642ff993fe93e5033cba9f97a633a0a340 (diff)
Add flake8 style config and for POSCA
JIRA: BOTTLENECK-100 Adding flake8 configuration and fix for POSCA Change-Id: Ib822d5abde535263a4473d67c15cc17995f1417b Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'testsuites/posca/testcase_script/posca_factor_rx_cache_size.py')
-rw-r--r--testsuites/posca/testcase_script/posca_factor_rx_cache_size.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/posca/testcase_script/posca_factor_rx_cache_size.py b/testsuites/posca/testcase_script/posca_factor_rx_cache_size.py
index cfbd278e..97045a1d 100644
--- a/testsuites/posca/testcase_script/posca_factor_rx_cache_size.py
+++ b/testsuites/posca/testcase_script/posca_factor_rx_cache_size.py
@@ -110,7 +110,7 @@ def posca_run(con_dic):
bandwidth, latency, cpu_load)
if (cpu_load < con_dic['test_cpu_load\
']) and (latency < con_dic['test_latency']):
- if (abs(bandwidth_tmp-bandwidth)/bandwidth < 0.05):
+ if (abs(bandwidth_tmp - bandwidth) / bandwidth < 0.05):
return True
else:
print("%s,%s") % (bandwidth, test_tx_cache_s_e)