regression_test.sh: adds sorting to bottom, fixes missing tbody end tag

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2021-12-10 14:41:38 -08:00
parent 8c1bf88b05
commit 254681a205

View File

@@ -662,12 +662,12 @@ td.testname {
</tr> </tr>
</thead> </thead>
<tbody>" <tbody>"
tail="</body></html>" f="</body></html>"
fname="${HOMEPATH}/html-reports/regression_file-${NOW}.html" fname="${HOMEPATH}/html-reports/regression_file-${NOW}.html"
echo "$header" >> "$fname" echo "$header" >> "$fname"
echo "${results[@]}" >> "$fname" echo "${results[@]}" >> "$fname"
echo "</table> echo "</tbody>
</table> </table>
<br /> <br />
<h3>System information</h3> <h3>System information</h3>
@@ -694,7 +694,9 @@ td.testname {
<td id='python_environment'>${PYTHON_ENVIRONMENT}</td> <td id='python_environment'>${PYTHON_ENVIRONMENT}</td>
</tr> </tr>
</tbody> </tbody>
</table>" >> "$fname" </table>
<script> sortTable('myTable2', 2); </script>
" >> "$fname"
echo "$tail" >> "$fname" echo "$tail" >> "$fname"
if [ -f "${HOMEPATH}/html-reports/latest.html" ]; then if [ -f "${HOMEPATH}/html-reports/latest.html" ]; then
rm -f "${HOMEPATH}/html-reports/latest.html" rm -f "${HOMEPATH}/html-reports/latest.html"