From 5f9fd108a838afb75a315f31cfa060ac55e5a1f2 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 8 Dec 2021 13:27:01 -0800 Subject: [PATCH] regression_test: Include location of python environment in system information table Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 6deb7a5c..65efcfda 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -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 { OS Version Hostname IP Address + Python Environment @@ -680,6 +682,7 @@ td.testname { ${OS_Version} ${HOSTNAME} ${IP_ADDRESS} + ${PYTHON_ENVIRONMENT} " >> "$fname"