File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ while [ $# -gt 0 ]; do
2323 shift
2424done
2525
26- if [ ! -z " $ondevice " ]; then
27- echo " Hack: reset the device to make sure no previous UnitTest classes have been registered..."
28- " $mpremote " reset
29- sleep 15
30- fi
31-
3226# print os and set binary
3327os_name=$( uname -s)
3428if [ " $os_name " = " Darwin" ]; then
@@ -78,6 +72,12 @@ result = unittest.main() ; sys.exit(0 if result.wasSuccessful() else 1) "
7872 fi
7973 result=$?
8074 else
75+ if [ ! -z " $ondevice " ]; then
76+ echo " Hack: reset the device to make sure no previous UnitTest classes have been registered..."
77+ " $mpremote " reset
78+ sleep 15
79+ fi
80+
8181 echo " Device execution"
8282 # NOTE: On device, the OS is already running with boot.py and main.py executed,
8383 # so we don't need to (and shouldn't) re-run them. The system is already initialized.
You can’t perform that action at this time.
0 commit comments