mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-22 04:55:06 +00:00
lf_qa.py : Test Suite links html / pdf , removed lf_check results from links
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -99,7 +99,7 @@ class csv_sqlite_dash():
|
|||||||
# <table border="1" class="dataframe">
|
# <table border="1" class="dataframe">
|
||||||
def get_suite_html(self):
|
def get_suite_html(self):
|
||||||
suite_html_results = """
|
suite_html_results = """
|
||||||
<table border="1">
|
<table border="1" ;class="dataframe"; style="width:40%>
|
||||||
<thead>
|
<thead>
|
||||||
<tr style="text-align: left;">
|
<tr style="text-align: left;">
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
@@ -116,16 +116,20 @@ class csv_sqlite_dash():
|
|||||||
if "lf_qa" in str(pdf_info):
|
if "lf_qa" in str(pdf_info):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
parent_path = os.path.dirname(pdf_info)
|
|
||||||
pdf_base_name = os.path.basename(pdf_info)
|
pdf_base_name = os.path.basename(pdf_info)
|
||||||
pdf_path = os.path.join(parent_path,pdf_base_name)
|
if "check" in str(pdf_base_name):
|
||||||
pdf_path = self.server + pdf_path.replace('/home/lanforge/','')
|
pass
|
||||||
html_path = os.path.join(parent_path,"index.html")
|
else:
|
||||||
html_path = self.server + html_path.replace('/home/lanforge/','')
|
parent_path = os.path.dirname(pdf_info)
|
||||||
base_name = os.path.basename(parent_path)
|
pdf_path = os.path.join(parent_path,pdf_base_name)
|
||||||
suite_html_results += """
|
pdf_path = self.server + pdf_path.replace('/home/lanforge/','')
|
||||||
<tr><td><p>{}</td> <td><a href="{}" target="_blank">html</a> / <a href="{}" target="_blank">pdf</a></p></td></tr>
|
html_path = os.path.join(parent_path,"index.html")
|
||||||
""".format(base_name,html_path,pdf_path)
|
html_path = self.server + html_path.replace('/home/lanforge/','')
|
||||||
|
base_name = os.path.basename(parent_path)
|
||||||
|
suite_html_results += """
|
||||||
|
<tr style="text-align: left;width:50%;padding: 1px">
|
||||||
|
<tr><td><p>{}</td></p><td><a href="{}" target="_blank">html</a> / <a href="{}" target="_blank">pdf</a></p></td></tr>
|
||||||
|
""".format(base_name,html_path,pdf_path)
|
||||||
suite_html_results += """
|
suite_html_results += """
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user