From c1492964f1def7e6883b6ddbfaff6fb73ace1b6c Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Fri, 19 Nov 2021 15:30:07 -0800 Subject: [PATCH] cv_test_manager: Fix report directory Signed-off-by: Matthew Stidham --- py-json/cv_test_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-json/cv_test_manager.py b/py-json/cv_test_manager.py index 353e8f0c..41e45497 100644 --- a/py-json/cv_test_manager.py +++ b/py-json/cv_test_manager.py @@ -411,11 +411,11 @@ class cv_test(Realm): # lf_wifi_capacity_test.py may be run / initiated by a remote system against a lanforge # the local_lf_report_dir is where data is stored, if there is no local_lf_report_dir then the test is run directly on lanforge - if self.local_lf_report_dir is None: + if self.lf_report_dir: csv_path = "%s/kpi.csv" % self.lf_report_dir else: - kpi_location = self.local_lf_report_dir + "/" + os.path.basename(self.lf_report_dir) - # the local_lf_report_dir is the parent directory, need to get the directory name + kpi_location = self.lf_report_dir + "/" + os.path.basename(self.lf_report_dir) + # the lf_report_dir is the parent directory, need to get the directory name csv_path = "%s/kpi.csv" % kpi_location print("Attempt to submit kpi: ", csv_path)