2019-07-04 10:47:41 +08:00
|
|
|
#!/bin/bash -e
|
2019-04-10 05:09:18 +08:00
|
|
|
TEST_FILENAME=${TEST_FILENAME:-nosetests.xml}
|
2019-07-03 12:27:49 +08:00
|
|
|
if [ -f "/EON" ]; then
|
2019-04-10 05:09:18 +08:00
|
|
|
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)
|
2019-04-10 05:09:18 +08:00
|
|
|
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-05-22 00:09:30 +08:00
|
|
|
|
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
|