Skip to content

[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

Merged
merged 1 commit into from
Sep 24, 2016

Conversation

sarahmarshy
Copy link
Contributor

@sarahmarshy sarahmarshy commented Sep 21, 2016

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

  • Tests
  • Documentation

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

Copy link
Contributor

@theotherjimmy theotherjimmy left a comment

Choose a reason for hiding this comment

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

👍

@sg-
Copy link
Contributor

sg- commented Sep 22, 2016

Wow - that was it?

@sg-
Copy link
Contributor

sg- commented Sep 22, 2016

@sarahmarshy do we have these as part of export-build tests yet?

@sarahmarshy
Copy link
Contributor Author

sarahmarshy commented Sep 22, 2016

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.

@sarahmarshy
Copy link
Contributor Author

@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.

@sg-
Copy link
Contributor

sg- commented Sep 22, 2016

I don't understand. Why isn't the test mbed import <program url> ; mbed export <gcc_compiler> ; make ??

@sarahmarshy
Copy link
Contributor Author

sarahmarshy commented Sep 22, 2016

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.

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

Successfully merging this pull request may close these issues.

4 participants