mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
lf_report.py : addede method to get parent or reports directory
This will assist in getting the test-rig directory Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -24,7 +24,7 @@ LICENSE:
|
|||||||
|
|
||||||
INCLUDE_IN_README
|
INCLUDE_IN_README
|
||||||
'''
|
'''
|
||||||
|
# CAUTION: adding imports to this file which are not in update_dependencies.py is not advised
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import datetime
|
import datetime
|
||||||
@@ -224,6 +224,11 @@ class lf_report():
|
|||||||
|
|
||||||
def get_path(self):
|
def get_path(self):
|
||||||
return self.path
|
return self.path
|
||||||
|
|
||||||
|
def get_parent_path(self):
|
||||||
|
parent_path = os.path.dirname(self.path)
|
||||||
|
return parent_path
|
||||||
|
|
||||||
# get_path_date_time, get_report_path and need to be the same
|
# get_path_date_time, get_report_path and need to be the same
|
||||||
def get_path_date_time(self):
|
def get_path_date_time(self):
|
||||||
return self.path_date_time
|
return self.path_date_time
|
||||||
@@ -302,7 +307,6 @@ class lf_report():
|
|||||||
""".format(link=_link,link_name=_link_name)
|
""".format(link=_link,link_name=_link_name)
|
||||||
self.html += self.link
|
self.html += self.link
|
||||||
|
|
||||||
|
|
||||||
def generate_report(self):
|
def generate_report(self):
|
||||||
self.write_html()
|
self.write_html()
|
||||||
self.write_pdf()
|
self.write_pdf()
|
||||||
|
|||||||
Reference in New Issue
Block a user