Automation change only: after adding the "wait for all downloads to complete" thing to STM32F4 I forgot that, if it is executed from u_run.py directly, rather than from u_pull_request.py, the list will be empty and hence Python will barf on a NoneType being accessed.  This fixes that.
@@ -599,11 +599,11 @@ def run(instance, mcu, toolchain, connection, connection_lock,
sleep(1)
platform_lock.release()
if downloaded:
+ reporter.event(u_report.EVENT_TYPE_DOWNLOAD,
+ u_report.EVENT_COMPLETE)
# Remove us from the list of pending downloads
if download_list:
download_list.remove(instance_text)
- reporter.event(u_report.EVENT_TYPE_DOWNLOAD,
- u_report.EVENT_COMPLETE)
# Wait for all the other downloads to complete before
# starting SWO logging
u_utils.wait_for_completion(download_list,
