Open dustin-crossman opened 4 years ago
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-763
Quick fix would be filtered_ctest_test_list_keys = list(filtered_ctest_test_list.keys())
. In python 3 dict.keys
returns a keysview
and not a list
.
Just tested that as a fix and it works well. I can put in a PR if that fix seems sufficient to resolve this.
Description
Passing the --shuffle flag to mbedgt as in the following: mbed test -t GCC_ARM -m CY8CPROTO_062_4343W -n "*mbed_hal-*" --compile mbedgt --shuffle results in the following error:
The issue is the .keys() call here: https://github.com/ARMmbed/mbed-os-tools/blob/master/packages/mbed-greentea/mbed_greentea/mbed_greentea_cli.py#L869 In python2 .keys() returns a list of the dictionary keys. In python3 .keys() returns a view object (dict_keys) that is not subscriptable.
Explicitly converting filtered_ctest_test_list_keys to a list should be all that is required to fix the issue for both py2 and py3.
Issue request type