diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index fff2efd2..864d2029 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -77,6 +77,8 @@ if [[ ${#MGR} -eq 0 ]]; then # Allow the user to change the radio they test agai MGR="localhost" fi +PYTHON_VERSION=$(python -c 'import sys; print(sys.version)') + #SCENARIO_CHECK="$(python3 -c "import requests; print(requests.get('http://${MGR}:8080/events/').status_code)")" #if [[ ${SCENARIO_CHECK} -eq 200 ]]; then # : @@ -622,9 +624,10 @@ td.testname {

Regression Results

-

$NOW

-

$LAST_COMMIT

- +

$NOW

+

$LAST_COMMIT

+

Test results

+
@@ -641,7 +644,26 @@ td.testname { fname="${HOMEPATH}/html-reports/regression_file-${NOW}.html" echo "$header" >> "$fname" echo "${results[@]}" >> "$fname" - echo "
Command Name
" >> "$fname" + LANFORGE_DATA=$(python -c 'import lanforge_scripts + lfcli=lanforge_scripts.LFCliBase(\"192.168.92.12\",8080) + response=lfcli.json_get(\"/\")') + echo " + +
+

System information

+ + + + + + + + + + + + +
Python version>LANforge versionLANforge build date
${PYTHON_VERSION}
" >> "$fname" echo "$tail" >> "$fname" if [ -f "${HOMEPATH}/html-reports/latest.html" ]; then rm -f "${HOMEPATH}/html-reports/latest.html"