aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/networking/moongen_testpmd.py
diff options
context:
space:
mode:
authorEmma Foley <emma.l.foley@intel.com>2018-06-29 08:36:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-29 08:36:04 +0000
commit1e515b6cc3dd15c399f2663999c9734610494e5c (patch)
treec40f1cf484ddf0d6d5bba1f749192bd594ffcda2 /yardstick/benchmark/scenarios/networking/moongen_testpmd.py
parenteb54a9e65e838e092e5acb5a8bd4119dd2e9f556 (diff)
parenteaebb40c960284d7d4ce9ad6221cba32c04a2827 (diff)
Merge "Convert SLA asserts to raises" into stable/fraser
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/moongen_testpmd.py')
-rw-r--r--yardstick/benchmark/scenarios/networking/moongen_testpmd.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/yardstick/benchmark/scenarios/networking/moongen_testpmd.py b/yardstick/benchmark/scenarios/networking/moongen_testpmd.py
index 86173c9da..e3bd7af46 100644
--- a/yardstick/benchmark/scenarios/networking/moongen_testpmd.py
+++ b/yardstick/benchmark/scenarios/networking/moongen_testpmd.py
@@ -367,9 +367,10 @@ ports = {0,1},
throughput_rx_mpps = int(
self.scenario_cfg["sla"]["throughput_rx_mpps"])
- assert throughput_rx_mpps <= moongen_result["tx_mpps"], \
- "sla_throughput_rx_mpps %f > throughput_rx_mpps(%f); " % \
- (throughput_rx_mpps, moongen_result["tx_mpps"])
+ self.verify_SLA(
+ throughput_rx_mpps <= moongen_result["tx_mpps"],
+ "sla_throughput_rx_mpps %f > throughput_rx_mpps(%f); "
+ % (throughput_rx_mpps, moongen_result["tx_mpps"]))
def teardown(self):
"""cleanup after the test execution"""