From 046fd417f1d45e2f99d0f66af2fc53992bc42911 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Fri, 3 Dec 2021 15:49:18 -0800 Subject: [PATCH] regression_test.sh: refomats HTML, appearance now more like lf_check output Signed-off-by: Jed Reynolds --- py-scripts/regression_test.sh | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 008859fe..14750067 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -76,7 +76,7 @@ fi #SCENARIO_CHECK="$(python3 -c "import requests; print(requests.get('http://${MGR}:8080/events/').status_code)")" #if [[ ${SCENARIO_CHECK} -eq 200 ]]; then -# pass +# : #else # echo "${SCENARIO_CHECK}" # echo "Your LANforge Manager is out of date. Regression test requires LANforge version 5.4.4 or higher in order to run" @@ -540,12 +540,16 @@ function test() { else echo "No errors detected" fi - results+=("${CURR_TEST_NAME} - ${testcommand} - $TDTEXT - ${execution} - STDOUT - ${STDERR}") + results+=(" + ${CURR_TEST_NAME} + $TDTEXT + ${execution} + STDOUT + ${STDERR} + + + ${testcommand} +") } function start_tests() { @@ -591,18 +595,25 @@ body { background-color:yellow; } table { - border: 1px solid gray; + border: 0 none; + border-collapse: collapse; } td { margin: 0; padding: 2px; - font-family: 'Century Gothic','Courier New',courier,sans-serif; + font-family: 'Century Gothic',Arial,Verdana,Tahoma,'Trebuchet MS',Impact,sans-serif; + border: 1px solid gray; } h1, h2, h3, h4 { - font-family: 'Century Gothic',Arial,sans,sans-serif; + font-family: 'Century Gothic',Arial,Verdana,Tahoma,'Trebuchet MS',Impact,sans-serif; } .scriptdetails { font-size: 10px; + font-family:'Lucida Typewriter','Andale Mono','Courier New',Courier,FreeMono,monospace; +} +td.testname { + font-size:14px; + font-weight: bold; } @@ -615,7 +626,6 @@ h1, h2, h3, h4 { Command Name - Command Status Execution time STDOUT