regression_test: Save hostname to system information table

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-07 12:50:36 -08:00
parent 83136bb779
commit 4f6ee25c81

View File

@@ -82,6 +82,7 @@ PYTHON_VERSION=$(python3 -c 'import sys; print(sys.version)')
BuildVersion=$(wget $MGR:8080 -q -O - jq '.VersionInfo.BuildVersion')
BuildDate=$(wget $MGR:8080 -q -O - jq '.VersionInfo.BuildDate')
OS_Version=$(echo /etc/os-release | grep 'VERSION')
HOSTNAME=$(cat /etc/hostname)
#SCENARIO_CHECK="$(python3 -c "import requests; print(requests.get('http://${MGR}:8080/events/').status_code)")"
#if [[ ${SCENARIO_CHECK} -eq 200 ]]; then
@@ -665,7 +666,8 @@ td.testname {
<td id='PythonVersion'>${PYTHON_VERSION}</td>
<td id='LANforgeVersion'>${BuildVersion}</td>
<td id='LANforgeBuildDate'>${BuildDate}</td>
<td id='OS_Version'>${OS_Version}
<td id='OS_Version'>${OS_Version}</td>
<td id='Hostname'>${HOSTNAME}</td>
</tr>
</table>" >> "$fname"
echo "$tail" >> "$fname"