From ae78aee979df7d267e4484d3b2c113e31246f6c8 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 27 Jan 2022 11:24:28 -0800 Subject: [PATCH] regression_test: Fix scenario.py method call Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 84467a1f..aa3f0433 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -421,14 +421,13 @@ function echo_print() { } function test() { - START_TIME=$(date +%s%N | cut -b1-13) FILENAME="${TEST_DIR}/${NAME}" START_JC=$(date '+%Y-%m-%d %H:%M:%S') # Start of journalctl logging. if [[ ${#PORTS} -gt 0 ]]; then - "./scenario.py --load BLANK --mgr ${MGR} --check_phantom ${PORTS} --debug" > ${FILENAME}.txt + ./scenario.py --load BLANK --mgr ${MGR} --check_phantom "${PORTS}" --debug > "${FILENAME}.txt" else - "./scenario.py --load BLANK --mgr ${MGR} --debug" > ${FILENAME}.txt + ./scenario.py --load BLANK --mgr ${MGR} --debug > "${FILENAME}.txt" fi echo "" @@ -439,7 +438,7 @@ function test() { start=$(date +%s) # this command saves stdout and stderr to the stdout file FILENAME="${TEST_DIR}/${NAME}" - "$testcommand" >> ${FILENAME}.txt 2>&1 + "$testcommand" >> "${FILENAME}.txt" 2>&1 TESTRV=$? #echo "TESTRV: $TESTRV" @@ -649,7 +648,6 @@ td.testname { #mail -s "Regression Results" scripters@candelatech.com <<<$content } -CONTINUE="True" results=() NOW=$(date +"%Y-%m-%d-%H-%M") NOW="${NOW/:/-}"