mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
lf_report.py : results put in html-reports
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -35,7 +35,7 @@ import pdfkit
|
|||||||
class lf_report():
|
class lf_report():
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
#_path the report directory under which the report directories will be created.
|
#_path the report directory under which the report directories will be created.
|
||||||
_path = "/home/lanforge/report-data",
|
_path = "/home/lanforge/html-reports",
|
||||||
_alt_path = "",
|
_alt_path = "",
|
||||||
_date = "",
|
_date = "",
|
||||||
_title="LANForge Test Run Heading",
|
_title="LANForge Test Run Heading",
|
||||||
@@ -126,7 +126,7 @@ class lf_report():
|
|||||||
if self.date != "":
|
if self.date != "":
|
||||||
self.date_time_directory = str(self.date) + str("_") + str(self.results_dir_name)
|
self.date_time_directory = str(self.date) + str("_") + str(self.results_dir_name)
|
||||||
else:
|
else:
|
||||||
self.date = str(datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")).replace(':','-')
|
self.date = str(datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")).replace(':','-')
|
||||||
self.date_time_directory = self.date + str("_") + str(self.results_dir_name)
|
self.date_time_directory = self.date + str("_") + str(self.results_dir_name)
|
||||||
|
|
||||||
#def set_date_time_directory(self,date_time_directory):
|
#def set_date_time_directory(self,date_time_directory):
|
||||||
|
|||||||
Reference in New Issue
Block a user