-
Notifications
You must be signed in to change notification settings - Fork 3k
[Exporters] [Makefile] Single quotes for escaping commands #2773
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Wow - that was it? |
@sarahmarshy do we have these as part of export-build tests yet? |
No, I can add to #2754 though. I will look a little strange, as the build calls are still in progen, while makefile is entirely in mbed. I can override the progen build method in the Makefile, but obviously the function name "ProgenBuild" will be a little misleading. The alternative is making a separate function call in the build tests for make. |
@sg- remembered this fun thing when I was implementing this: the makefile must be executed in the directory with source. I'll have to copy all relevant source into the .build/export folder where the tests are exported (normally just the project file). Little less trivial, but it shouldn't be too bad. |
I don't understand. Why isn't the test |
I can transition all the tests to import for mbed 5. But they don't work that way right now. They pick up source references from the TESTS dir and the root of mbed-os. Also, for mbed 2, I am just using the test class that exists now. There is no copying of files for export tests. The project files reference source from disparate parts of the source tree. |
Description
Commands must be in quotes on Windows, in case the path contains spaces. Previously, they were escaped with
"
, but it seems like'
is more agreeable to Windows.Status
READY
Migrations
NO
Related PRs
List related PRs against other branches:
#2577
Todos
Steps to test or reproduce
Only reproducible on Windows
Run this from master:
mbed export -m whatever -i make_iar
Try to execute the makefile.
Repeat with this PR.
@sg- @theotherjimmy @screamerbg