Skip to content

icetea support #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 4, 2018
Merged

icetea support #731

merged 6 commits into from
Sep 4, 2018

Conversation

OPpuolitaival
Copy link
Contributor

Add support for icetea tests

mbed/mbed.py Outdated
applications_to_add = proc.stdout.read()
# Filter right row in case that debugger print something there
if applications_to_add and 'TEST_APPS-' in applications_to_add:
applications_to_add = filter(lambda x: 'TEST_APPS-' in x, applications_to_add.split('\n'))[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work in python3: filter is not index-able.

@OPpuolitaival
Copy link
Contributor Author

Py3 issue fixed in ARMmbed/mbed-os#7769

@OPpuolitaival OPpuolitaival force-pushed the icetea branch 2 times, most recently from 49e5381 to 5244706 Compare August 23, 2018 12:08
Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good! A few questions below

mbed/mbed.py Outdated
env=env)
# Greentea tests
if greentea:
greentea_command = ['mbedgt', '--test-spec', test_spec] \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the if run_list check has been dropped for greentea here. Could this be added back since it is present for icetea below?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get the idea.. can you explain a bit more?

tests_by_name_temp = tests_by_name if tests_by_name else ''
if icetea:
proc = popen(icetea_command_base + ['--application-list'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the stdout output a comma separated string? Like test1,test2,test3? Just trying to understand this block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is something like:
TEST_APPS-Something
TEST_APPS-Something_else

@OPpuolitaival
Copy link
Contributor Author

@theotherjimmy anything need to do before merge? I don't see anything

@screamerbg
Copy link
Contributor

@OPpuolitaival LGTM. Thanks for all your working on this!

Please address @bridadan's comment.

@OPpuolitaival
Copy link
Contributor Author

@screamerbg now fixed..

@theotherjimmy theotherjimmy merged commit f65f141 into ARMmbed:master Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants