Add flake8 style config and for POSCA
[bottlenecks.git] / testsuites / posca / testcase_script / posca_factor_tx_cache_size.py
index a8d1a48..b7d4506 100644 (file)
@@ -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)