panda/run_automated_tests.sh

22 lines
569 B
Bash
Raw Normal View History

2017-07-17 16:29:31 -06:00
#!/bin/bash
TEST_FILENAME=${TEST_FILENAME:-nosetests.xml}
if [ ! -f "/EON" ]; then
TESTSUITE_NAME="Panda_Test-EON"
2019-07-02 21:05:33 -06:00
TEST_SCRIPTS=$(ls tests/automated/$1*.py | grep -v "wifi")
else
TESTSUITE_NAME="Panda_Test-DEV"
2019-07-02 21:05:33 -06:00
TEST_SCRIPTS=$(ls tests/automated/$1*.py)
fi
2017-07-17 16:29:31 -06:00
cd boardesp
make flashall
cd ..
2019-07-02 19:08:17 -06: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-02 21:05:33 -06:00
PYTHONPATH="." python $(which nosetests) -v --with-xunit --xunit-file=./$TEST_FILENAME --xunit-testsuite-name=$TESTSUITE_NAME -s $TEST_SCRIPTS