From 4f6ee25c81ef04855a5db181212311ecaf04fe18 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Tue, 7 Dec 2021 12:50:36 -0800 Subject: [PATCH] regression_test: Save hostname to system information table Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 01dbe211..2bac6e5a 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -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 { ${PYTHON_VERSION} ${BuildVersion} ${BuildDate} - ${OS_Version} + ${OS_Version} + ${HOSTNAME} " >> "$fname" echo "$tail" >> "$fname"