Releases: ARMmbed/htrun
Releases · ARMmbed/htrun
Host test wait_us_auto false positive bug-fix
Changes:
- Bug-fix: If no ticks recorded host test returns True, see #93
Bug-fix: event queue hangs under RPI2
Changes:
- Bug-fix: event queue hangs under RPI2, see #92
- Released to PyPI.
Serial port pooling with mbed-ls improvements
Changes:
- Bug-fix: Add default 60 sec timeout for event queue when we wait for serial port in
conn_process
, see #90. - Add command like switch
-P <pooling_timeout_sec>
to specify custom timeout for pooling procedures using mbed-ls, see #91 for details. - Released to PyPI.
removing 'mbed-host-tests-0.2.11' (and everything under it)
running upload
Submitting dist\mbed-host-tests-0.2.11.zip to https://pypi.python.org/pypi
Server response (200): OK
mbed-ls pooling improvements
Changes:
- Add serial port mount time discovery (with mbed-ls) delay to 1 minute, see #90
- Add to
--list
switch a-e ./test/host_tests
by default so users can see all stuff loaded, not only frommbedhtrun
, see #84- Added to
--list
path to loaded script (for debugging and issue solving)
- Added to
- Echo host test reply counter checks, see #82
- Released to PyPI
Hardware reset feature - opens door to HW device powercycle feature
Changes:
- Now reset_dut(reset_type) accepts an argument reset_type that can have two string value software_reset or hardware_reset:
- software_reset resets the device by sending break command over serial.
- hardware_reset uses mbed-tas-rm service to reset the device.
- For hardware reset
htrun
requires that environment variablesMBED_TAS_RM_IP
andMBED_TAS_RM_PORT
are set.- In Jenkins these environment variables are set in
Jenkins->Configure->Global environment settings
. - On desktop user would need to set these environment variables pointing to locally running
mbed-tas-rm
service. See https://github.com/ARMmbed/mbed-tas-rm documentation. - Note:
mbed-tas-rm
is not yet publicly available tool.
- In Jenkins these environment variables are set in
- Extension on PR #75 for hardware reset. Please see feature documentation in #75.
- See: #77 for details.
- Released to PyPI.
Note: power_cycle
plugin can be found/enumerated:
$ mbedhtrun --plugins
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+
| name | type | capabilities | stable | os_support | required_parameters |
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+
| HostTestPluginCopyMethod_Mbed | CopyMethod | shutil, default | True | True | image_path, destination_disk |
| HostTestPluginCopyMethod_Shell | CopyMethod | shell, cp, copy, xcopy | True | True | image_path, destination_disk |
| HostTestPluginCopyMethod_Silabs | CopyMethod | eACommander, eACommander-usb | True | True | image_path, destination_disk |
| HostTestPluginCopyMethod_Stlink | CopyMethod | stlink | False | True | image_path |
| HostTestPluginPowerCycleResetMethod | ResetMethod | power_cycle | True | True | target_id, device_info |
| HostTestPluginResetMethod_Mbed | ResetMethod | default | True | True | serial |
| HostTestPluginResetMethod_SiLabs | ResetMethod | eACommander, eACommander-usb | True | True | disk |
| HostTestPluginResetMethod_Stlink | ResetMethod | stlink | False | True | |
+-------------------------------------+-------------+------------------------------+--------+------------+------------------------------+
Improvements for mbed-ls enumeration features
Mount point and serial port change monitoring with mbed-ls
Changes:
- Add
mbed-ls
to check if DUT mount point and serial port changed.- Note: MOunt point and serial port can change if in test infrastructure device (re)mounting will assign new/different mount point and serial port names.
- Modification to flashing and reset plugins, adding mount guards. See #85 and #86.
- Released with PyPI.
Add freeze_support for multipreocessing import use
Changes:
- Add support for when a program which uses multiprocessing, see here: #74
- README updates.
- Add unit tests.
- Released with PyPI.
Add host test software reset support
Changes:
- Host test software reset introduced (using serial "send break" command). See here: #75. Corresponding PRs:
- ARMmbed/greentea#108 (Greentea support).
- ARMmbed/greentea-client#8 (Example test for greentea-client).
- Released to PyPI.
Improvements to Ctrl+C handling
Changes:
- When
mbedhtrun
catches Ctrl+C it willr eturn with error code < 0. See: #73.
$ mbedhtrun -d E: -p COM199:9600 -f ".\build\frdm-k64f-gcc\test\utest-test-case_control_async.bin" -C 4 -c shell -m K64F
[1457968204.80][HTST][INF] copy image onto target...
1 file(s) copied.
[1457968212.70][HTST][INF] starting host test process...
[1457968213.08][CONN][INF] starting connection process...
[1457968213.08][CONN][INF] initializing serial port listener...
[1457968213.08][SERI][INF] serial(port=COM199, baudrate=9600)
[1457968213.09][SERI][INF] reset device using 'default' plugin...
[1457968213.34][SERI][INF] wait for it...
Process Process-1:
Traceback (most recent call last):
File "c:\Python27.11\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "c:\Python27.11\lib\multiprocessing\process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "c:\work\pypi\htrun\mbed_host_tests\host_tests_conn_proxy\conn_proxy.py", line 151, in conn_process
config=config)
File "c:\work\pypi\htrun\mbed_host_tests\host_tests_conn_proxy\conn_proxy.py", line 49, in __init__
self.reset_dev_via_serial()
File "c:\work\pypi\htrun\mbed_host_tests\host_tests_conn_proxy\conn_proxy.py", line 65, in reset_dev_via_serial
sleep(delay)
KeyboardInterrupt
$ echo %errorlevel%
-3
Released to PyPI:
Submitting dist\mbed-host-tests-0.2.4.zip to https://pypi.python.org/pypi
Server response (200): OK