mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	cv_test_manager.py : update for lf_wifi_capacity.py and lf_dataplane_test.py
being run on a remote system from lanforge and needing to gather KPI Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -12,6 +12,7 @@ from pprint import pprint
 | 
			
		||||
import argparse
 | 
			
		||||
from cv_test_reports import lanforge_reports as lf_rpt
 | 
			
		||||
from csv_to_influx import *
 | 
			
		||||
import os.path
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def cv_base_adjust_parser(args):
 | 
			
		||||
@@ -407,7 +408,14 @@ class cv_test(Realm):
 | 
			
		||||
                                _influx_token=args.influx_token,
 | 
			
		||||
                                _influx_bucket=args.influx_bucket)
 | 
			
		||||
 | 
			
		||||
        # lf_wifi_capacity_test.py may be run / initiated by a remote system against a lanforge
 | 
			
		||||
        # the local_path is data is stored,  if there is no local_path then the test is run directly on lanforge
 | 
			
		||||
        if self.local_path == "":
 | 
			
		||||
            path = "%s/kpi.csv" % (self.report_dir)
 | 
			
		||||
        else:
 | 
			
		||||
            kpi_location = self.local_path + "/" + os.path.basename(self.report_dir)
 | 
			
		||||
            # the local_path is the parent directory,  need to get the directory name
 | 
			
		||||
            path = "%s/kpi.csv" % (kpi_location)
 | 
			
		||||
        
 | 
			
		||||
        print("Attempt to submit kpi: ", path)
 | 
			
		||||
        csvtoinflux = CSVtoInflux(influxdb=influxdb,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user