mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +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=') | ||||
| HOSTNAME=$(cat /etc/hostname) | ||||
| 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)")" | ||||
| #if [[ ${SCENARIO_CHECK} -eq 200 ]]; then | ||||
| @@ -670,6 +671,7 @@ td.testname { | ||||
|         <th>OS Version</th> | ||||
|         <th>Hostname</th> | ||||
|         <th>IP Address</th> | ||||
|         <th>Python Environment</th> | ||||
|       </tr> | ||||
|     </thead> | ||||
|     <tbody> | ||||
| @@ -680,6 +682,7 @@ td.testname { | ||||
|         <td id='OS_Version'>${OS_Version}</td> | ||||
|         <td id='Hostname'>${HOSTNAME}</td> | ||||
|         <td id='ip_address'>${IP_ADDRESS}</td> | ||||
|         <td id='python_environment'>${PYTHON_ENVIRONMENT}</td> | ||||
|       </tr> | ||||
|     </tbody> | ||||
|     </table>" >> "$fname" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham