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:
Chuck SmileyRekiere
2021-08-09 10:21:47 -06:00
parent 11fb7a5b93
commit d2b5f976de

View File

@@ -24,7 +24,7 @@ LICENSE:
INCLUDE_IN_README
'''
# CAUTION: adding imports to this file which are not in update_dependencies.py is not advised
import os
import shutil
import datetime
@@ -224,6 +224,11 @@ class lf_report():
def get_path(self):
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
def get_path_date_time(self):
return self.path_date_time
@@ -302,7 +307,6 @@ class lf_report():
""".format(link=_link,link_name=_link_name)
self.html += self.link
def generate_report(self):
self.write_html()
self.write_pdf()