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

Execution of twister in makefile environment #37876

Closed
benediktibk opened this issue Aug 23, 2021 · 3 comments
Closed

Execution of twister in makefile environment #37876

benediktibk opened this issue Aug 23, 2021 · 3 comments
Labels
Enhancement Changes/Updates/Additions to existing features

Comments

@benediktibk
Copy link
Collaborator

Is your enhancement proposal related to a problem? Please describe.
We ran into issues when running twister from a makefile, it failed to decode the output of verify-toolchain.cmake, which contains in this environment a bunch of escape characters. Interestingly not if run outside make.

Describe the solution you'd like
Get rid of the escape characters in the byte array result of cmake, before it is decoded as json.

Describe alternatives you've considered
Changing the environment setup in which python inside make is run. There are no relevant difference in printenv, and I considered that other people might run into the same issue.

@benediktibk benediktibk added the Enhancement Changes/Updates/Additions to existing features label Aug 23, 2021
@benediktibk
Copy link
Collaborator Author

Pull Request: #37875

@benediktibk
Copy link
Collaborator Author

For future reference, the problematic string was: b'\x1b[0m{"ZEPHYR_TOOLCHAIN_VARIANT" : "zephyr", "SDK_VERSION": "0.13.0", "ZEPHYR_SDK_INSTALL_DIR" : "/opt/zephyr-sdk-0.13.0"}\x1b[0m\n'

@benediktibk
Copy link
Collaborator Author

Pull request has been merged: #37875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

1 participant