X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=testsuites%2Fposca%2Ftestcase_script%2Fposca_factor_tx_cache_size.py;h=b7d4506500d4914b6dade37b2d1324bfed4cb900;hb=c4e5626d4ecf05a1b72b4bd0ab8f5c83245b0305;hp=a8d1a485753071d875997dc4fa035a632da62ef9;hpb=a51397eb59fd8159806375e78a2aa65f9edfa16d;p=bottlenecks.git 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)