You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
unitttest.sh: restart between each ondevice unit test
This commit is contained in:
+6
-6
@@ -23,12 +23,6 @@ while [ $# -gt 0 ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
if [ ! -z "$ondevice" ]; then
|
||||
echo "Hack: reset the device to make sure no previous UnitTest classes have been registered..."
|
||||
"$mpremote" reset
|
||||
sleep 15
|
||||
fi
|
||||
|
||||
# print os and set binary
|
||||
os_name=$(uname -s)
|
||||
if [ "$os_name" = "Darwin" ]; then
|
||||
@@ -78,6 +72,12 @@ result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
|
||||
fi
|
||||
result=$?
|
||||
else
|
||||
if [ ! -z "$ondevice" ]; then
|
||||
echo "Hack: reset the device to make sure no previous UnitTest classes have been registered..."
|
||||
"$mpremote" reset
|
||||
sleep 15
|
||||
fi
|
||||
|
||||
echo "Device execution"
|
||||
# NOTE: On device, the OS is already running with boot.py and main.py executed,
|
||||
# so we don't need to (and shouldn't) re-run them. The system is already initialized.
|
||||
|
||||
Reference in New Issue
Block a user