From d5801e449ca4c7115c2c11bf164bcce7b149917c Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Tue, 8 Dec 2020 21:53:41 +0100 Subject: Reporting test details for all tests Test details were only implemented in rapid_flowsizetest.py. When executing other tests, an error occured. That is now fixed, although in some cases, None is returned. The format.yaml files defines now alsowhat will be reported in the Xtesting details. Change-Id: I5feae62dcf228664b24451d3fc5dfaaadf7edb5e Signed-off-by: Luc Provoost --- VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py') diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py index 90bf5b28..135770fd 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_portstatstest.py @@ -33,6 +33,7 @@ class PortStatsTest(RapidTest): self.machines = machines def run(self): + result_details = {'Details': 'Nothing'} RapidLog.info("+---------------------------------------------------------------------------+") RapidLog.info("| Measuring port statistics on 1 or more PROX instances |") RapidLog.info("+-----------+-----------+------------+------------+------------+------------+") @@ -66,7 +67,7 @@ class PortStatsTest(RapidTest): old_errors[i] = new_errors[i] old_tsc[i] = new_tsc[i] RapidLog.info('|{:>10.0f}'.format(i)+ ' |{:>10.0f}'.format(duration)+' | ' + '{:>10.0f}'.format(rx) + ' | ' +'{:>10.0f}'.format(tx) + ' | '+'{:>10.0f}'.format(no_mbufs)+' | '+'{:>10.0f}'.format(errors)+' |') - variables = {'test': self.test['test'], + result_details = {'test': self.test['test'], 'environment_file': self.test['environment_file'], 'PROXID': i, 'StepSize': duration, @@ -74,9 +75,9 @@ class PortStatsTest(RapidTest): 'Sent': tx, 'NoMbufs': no_mbufs, 'iErrMiss': errors} - self.post_data('rapid_corestatstest', variables) + result_details = self.post_data('rapid_corestatstest', result_details) if machines_to_go == 0: duration = duration - 1 machines_to_go = len (self.machines) RapidLog.info("+-----------+-----------+------------+------------+------------+------------+") - return (True) + return (True, result_details) -- cgit 1.2.3-korg