5 years, 5 months ago.

Issue of Test Automation with IAR and GCC toolchain

Hi there,

I have used the K64F board to run test automation, with IAR toolchain and GCC_ARM. Both toolchain failed. I got the following info, May I have some help please?

mbedgt: greentea test automation tool ver. 1.4.0 mbedgt: test specification file '.\BUILD\tests\K64F\GCC_ARM\test_spec.json' (specified withtest-spec option) mbedgt: using '.\BUILD\tests\K64F\GCC_ARM\test_spec.json' from current directory! mbedgt: detecting connected mbed-enabled devices... mbedgt: detected 1 device mbedgt: processing target 'K64F' toolchain 'GCC_ARM' compatible platforms... (note: switch set to parallel 1) mbedgt: running 107 tests for platform 'K64F' and toolchain 'GCC_ARM' mbedgt: mbed-host-test-runner: started Exception in thread Thread-3: Traceback (most recent call last): File "c:\python27\lib\threading.py", line 801, in bootstrap_inner self.run() File "c:\python27\lib\threading.py", line 754, in run self.target(*self.args, self.kwargs) File "c:\python27\lib\site-packages\mbed_greentea\mbed_greentea_cli.py", line 489, in run_test_thread verbose=verbose) File "c:\python27\lib\site-packages\mbed_greentea\mbed_test_api.py", line 318, in run_host_test returncode, htrun_output = run_htrun(cmd, verbose) File "c:\python27\lib\site-packages\mbed_greentea\mbed_test_api.py", line 134, in run_htrun htrun_output += line.decode('utf-8') File "c:\python27\lib\encodings\utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xd2 in position 0: invalid continuationbyte

mbedgt: could not generate test report mbedgt: completed in 9.60 sec mbedgt: exited with code -1000 [mbed] Auto-installing missing Python modules... [mbed] WARNING: Cannot run icetea tests. Current folder does not contain TEST_APPS folder. - [mbed] ERROR: "mbedgt" returned error. Code: -1000 Path: "D:\mbed-cli\mbed-os-example-blinky" Command: "mbedgt test-spec .\BUILD\tests\K64F\GCC_ARM\test_spec.json" Tip: You could retry the last command with "-v" flag for verbose output -

I am using the Chinese version Windows 10, it seems that it is the char-set issue. When I switch to English Windows 10. the issue has gone!

It might be the defect of the greentea tools.

thanks. JZ

posted by JZ Qiu 16 Nov 2018
Be the first to answer this question.