VSPERF: Enable results publishing through config-file. 04/68404/2
authorSridhar K. N. Rao <sridhar.rao@spirent.com>
Wed, 28 Aug 2019 03:45:48 +0000 (09:15 +0530)
committerSridhar K. N. Rao <sridhar.rao@spirent.com>
Wed, 28 Aug 2019 14:30:57 +0000 (20:00 +0530)
This patch enables the publising of results to TestAPI via config-file.
Initial OPNFVPOD to empty string in 00_common.conf

Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com>
Change-Id: I5ca03d094b075c6b5ab5d656421aff506ce4b273

conf/00_common.conf
vsperf

index a846fb5..9b71fda 100644 (file)
@@ -131,6 +131,9 @@ CUMULATIVE_PARAMS = False
 # For example: 'throughput_rx_mbps', 'throughput_rx_fps', 'avg_latency_ns'
 MATRIX_METRIC = 'throughput_rx_fps'
 
+# OPNFVPOD specification.
+OPNFVPOD = ''
+
 # ############################
 # Modules
 # ############################
diff --git a/vsperf b/vsperf
index 003ca88..1c72a70 100755 (executable)
--- a/vsperf
+++ b/vsperf
@@ -896,8 +896,9 @@ def main():
                 output=settings.getValue('XUNIT_DIR'), outsuffix="",
                 verbosity=0).run(suite)
 
-        if args['opnfvpod']:
-            pod_name = args['opnfvpod']
+        if args['opnfvpod'] or settings.getValue('OPNFVPOD'):
+            pod_name = (args['opnfvpod'] if args['opnfvpod'] else
+                        settings.getValue('OPNFVPOD'))
             installer_name = str(settings.getValue('OPNFV_INSTALLER')).lower()
             opnfv_url = settings.getValue('OPNFV_URL')
             pkg_list = settings.getValue('PACKAGE_LIST')