mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
regression_test: Include location of python environment in system information table
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -84,6 +84,7 @@ BuildDate=$(wget $MGR:8080 -q -O - | jq '.VersionInfo.BuildDate')
|
|||||||
OS_Version=$(cat /etc/os-release | grep 'VERSION=')
|
OS_Version=$(cat /etc/os-release | grep 'VERSION=')
|
||||||
HOSTNAME=$(cat /etc/hostname)
|
HOSTNAME=$(cat /etc/hostname)
|
||||||
IP_ADDRESS=$(ip a sho eth0 | grep 'inet ' | cut -d "/" -f1 | cut -d "t" -f2)
|
IP_ADDRESS=$(ip a sho eth0 | grep 'inet ' | cut -d "/" -f1 | cut -d "t" -f2)
|
||||||
|
PYTHON_ENVIRONMENT=$(which python3)
|
||||||
|
|
||||||
#SCENARIO_CHECK="$(python3 -c "import requests; print(requests.get('http://${MGR}:8080/events/').status_code)")"
|
#SCENARIO_CHECK="$(python3 -c "import requests; print(requests.get('http://${MGR}:8080/events/').status_code)")"
|
||||||
#if [[ ${SCENARIO_CHECK} -eq 200 ]]; then
|
#if [[ ${SCENARIO_CHECK} -eq 200 ]]; then
|
||||||
@@ -670,6 +671,7 @@ td.testname {
|
|||||||
<th>OS Version</th>
|
<th>OS Version</th>
|
||||||
<th>Hostname</th>
|
<th>Hostname</th>
|
||||||
<th>IP Address</th>
|
<th>IP Address</th>
|
||||||
|
<th>Python Environment</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -680,6 +682,7 @@ td.testname {
|
|||||||
<td id='OS_Version'>${OS_Version}</td>
|
<td id='OS_Version'>${OS_Version}</td>
|
||||||
<td id='Hostname'>${HOSTNAME}</td>
|
<td id='Hostname'>${HOSTNAME}</td>
|
||||||
<td id='ip_address'>${IP_ADDRESS}</td>
|
<td id='ip_address'>${IP_ADDRESS}</td>
|
||||||
|
<td id='python_environment'>${PYTHON_ENVIRONMENT}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>" >> "$fname"
|
</table>" >> "$fname"
|
||||||
|
|||||||
Reference in New Issue
Block a user