Skip to content

Releases: ARMmbed/htrun

Host test wait_us_auto false positive bug-fix

03 Jun 14:10
Compare
Choose a tag to compare

Changes:

  • Bug-fix: If no ticks recorded host test returns True, see #93

Bug-fix: event queue hangs under RPI2

31 May 16:10
Compare
Choose a tag to compare

Changes:

  • Bug-fix: event queue hangs under RPI2, see #92
  • Released to PyPI.

Serial port pooling with mbed-ls improvements

16 May 16:28
Compare
Choose a tag to compare

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

11 May 14:09
Compare
Choose a tag to compare

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 from mbedhtrun, see #84
    • Added to --list path to loaded script (for debugging and issue solving)
  • Echo host test reply counter checks, see #82
  • Released to PyPI

Hardware reset feature - opens door to HW device powercycle feature

09 May 12:44
Compare
Choose a tag to compare

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 variables MBED_TAS_RM_IP and MBED_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.
  • 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

09 May 11:57
Compare
Choose a tag to compare

Changes:

  • This release makes sure we are not taking 'unknown' device property while pooling for it.
    • Improvements for two previous PRs. See #85 and #86.
  • See #88.
  • Released to PyPI.

Mount point and serial port change monitoring with mbed-ls

09 May 11:05
Compare
Choose a tag to compare

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

29 Mar 15:01
Compare
Choose a tag to compare

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

23 Mar 10:13
Compare
Choose a tag to compare

Changes:

Improvements to Ctrl+C handling

14 Mar 15:03
Compare
Choose a tag to compare

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