Skip to content
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

Custom program name causes error when running native tests #4546

Closed
j4m3s opened this issue Feb 6, 2023 · 5 comments
Closed

Custom program name causes error when running native tests #4546

j4m3s opened this issue Feb 6, 2023 · 5 comments

Comments

@j4m3s
Copy link

j4m3s commented Feb 6, 2023

Having followed the instructions here I now have a version number appended to my firmware binaries. However, I now also get

Building...
Testing...
[Errno 2] No such file or directory: '.pio/build/native/program'

when I try to run my native tests.

Commenting the extra_script out in platformio.ini allows the tests to run fine again in the native . The tests work ok in the embedded environment - the extra_script only causes the problem running native tests.

@ivankravets ivankravets transferred this issue from platformio/platformio-docs Feb 7, 2023
@ivankravets
Copy link
Member

Yes, the problem is here https://github.com/platformio/platformio-core/blob/develop/platformio/test/runners/readers/program.py#L78

We will think about how to fix it.

@ivankravets ivankravets added this to the 6.1.7 milestone Feb 7, 2023
@j4m3s
Copy link
Author

j4m3s commented Feb 7, 2023

That's really interesting - why would appending something to PROGNAME cause an issue there? The updated PROGNAME doesn't seem to be referenced in that function, and the error message doesn't contain anything pointing to the appended PROGNAME either.

(I should say... my python knowledge is minimal, so don't spend time replying if it's going to be obvious to others)

@ivankravets
Copy link
Member

Thanks for the report. Please re-test with pio upgrade --dev.

Does it work now?

@j4m3s
Copy link
Author

j4m3s commented Apr 16, 2023

Yes! Brilliant, thank you :)

How do I get off the dev branch and back onto stable when the next version of platformio is released?

@ivankravets
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants