panda/run_automated_tests.sh

22 lines
593 B
Bash
Raw Normal View History

2019-07-04 10:47:41 +08:00
#!/bin/bash -e
TEST_FILENAME=${TEST_FILENAME:-nosetests.xml}
2019-07-03 12:27:49 +08:00
if [ -f "/EON" ]; then
TESTSUITE_NAME="Panda_Test-EON"
else
TESTSUITE_NAME="Panda_Test-DEV"
2019-07-04 10:47:41 +08:00
fi
if [ ! -z "${SKIPWIFI}" ] || [ -f "/EON" ]; then
TEST_SCRIPTS=$(ls tests/automated/$1*.py | grep -v wifi)
else
2019-07-03 11:05:33 +08:00
TEST_SCRIPTS=$(ls tests/automated/$1*.py)
fi
2017-07-18 06:29:31 +08:00
2019-07-03 09:08:17 +08:00
IFS=$'\n'
for NAME in $(nmcli --fields NAME con show | grep panda | awk '{$1=$1};1')
do
nmcli connection delete "$NAME"
done
2019-07-03 11:05:33 +08:00
PYTHONPATH="." python $(which nosetests) -v --with-xunit --xunit-file=./$TEST_FILENAME --xunit-testsuite-name=$TESTSUITE_NAME -s $TEST_SCRIPTS