diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 92825d0f..822b0ade 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -20,7 +20,12 @@ Help() echo "If using the help flag, put the H flag at the end of the command after other flags." } -if [ -d "/home/lanforge/lanforge_env"] && pip3 install --upgrade lanforge-scripts || pip3 install --user -r ../requirements.txt --upgrade +if [ -d "/home/lanforge/lanforge_env" ]; +then + pip3 install --upgrade lanforge-scripts +else + pip3 install --user -r ../requirements.txt --upgrade +fi while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:H:" option; do case "${option}" in @@ -524,13 +529,13 @@ function test() { STDERR="STDERR" else echo "No errors detected" - results+=("${CURR_TEST_NAME} - ${testcommand} - Success - ${execution} - STDOUT - ") fi + results+=("${CURR_TEST_NAME} + ${testcommand} + Success + ${execution} + STDOUT + ") } function start_tests() {