ARMmbed / htrun

MOVED: https://github.com/ARMmbed/mbed-os-tools (Flash, reset and run host supervised tests on mbed platforms)
8 stars 37 forks source link

Error during copying process on MPS2 on Linux #175

Closed hug-dev closed 6 years ago

hug-dev commented 6 years ago

I am working with ARM_CM3DS_MPS2 target, running on MPS2 board. On Linux, while executing greentea tests, there is a bug when the binary image is copied from the BUILD folder to the board. Here is the htrun log when executed with greentea:

[1511173577.37][HTST][INF] host test executor ver. 1.2.0
[1511173577.37][HTST][INF] copy image onto target...
[1511173577.37][COPY][INF] Waiting up to 60 sec for '50040200074D652F3828F333' mount point (current is '/media/              /V2M-MPS2')...
[1511173577.37][mbedls.lstools_base]Call to deprecated function list_mbeds_by_targetid. List formatting methods are deprecated to simplify the API. Please use 'list_mbeds' instead.
[1511173577.37][mbedls.lstools_base]Call to deprecated function list_mbeds_ext. Functionality has been moved into 'list_mbeds'. Please use list_mbeds with 'unique_names=True' and 'read_details_txt=True'
[1511173577.37][root]Found htm target id, 50040200074D652F3828F333, for usb target id 000000000000
[1511173577.40][COPY][ERR] shutil.copy('BUILD/tests/ARM_CM3DS_MPS2/ARM/TESTS/mbed_drivers/echo/echo.bin', '/media/              /V2M-MPS2/mbed.bin')
[1511173577.40][COPY][ERR] Error: run_command() takes at most 3 arguments (5 given)
[1511173581.41][COPY][INF] Waiting up to 60 sec for '50040200074D652F3828F333' mount point (current is '/media/              /V2M-MPS2')...
[1511173581.41][mbedls.lstools_base]Call to deprecated function list_mbeds_by_targetid. List formatting methods are deprecated to simplify the API. Please use 'list_mbeds' instead.
[1511173581.41][mbedls.lstools_base]Call to deprecated function list_mbeds_ext. Functionality has been moved into 'list_mbeds'. Please use list_mbeds with 'unique_names=True' and 'read_details_txt=True'
[1511173581.42][root]Found htm target id, 50040200074D652F3828F333, for usb target id 000000000000
[1511173581.46][COPY][ERR] shutil.copy('BUILD/tests/ARM_CM3DS_MPS2/ARM/TESTS/mbed_drivers/echo/echo.bin', '/media/              /V2M-MPS2/mbed.bin')
[1511173581.46][COPY][ERR] Error: run_command() takes at most 3 arguments (5 given)
^C[mbed] User aborted!
mbedgt: ctrl+c keyboard interrupt!

The cause of the bug has been identified and a pull request is soon going to be made.