Skip to content

tools/utils: ensure default build profiles are processed first #9724

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
Feb 15, 2019

Conversation

naveenkaje
Copy link
Contributor

@naveenkaje naveenkaje commented Feb 14, 2019

Description

The command-line argument --profile looks for build profiles provided in mbed-os/tools/profiles/. If a
directory exists in the root folder with the same name as one of the profile names provided by default [e.g debug/develop/release], that directory is processed instead, resulting in an error. Fix this behavior by processing the default profiles first.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@theotherjimmy @bridadan

@naveenkaje
Copy link
Contributor Author

Fix for #8498

The command-line argument '--profile' looks for build
profiles provided in mbed-os/tools/profiles/. If a
directory name exists in the root folder with the
same name as one of the profile names provided by
default [e.g debug/develop/release], that directory
is processed instead resulting in incorrect behavior.
Fix this behavior by processing the default profiles first.
@naveenkaje naveenkaje force-pushed the tools_dir_with_profile_name branch from db5c302 to 176b750 Compare February 14, 2019 16:38
@naveenkaje naveenkaje requested a review from bulislaw February 14, 2019 17:43
@ciarmcom ciarmcom requested review from bridadan, theotherjimmy and a team February 14, 2019 18:00
@ciarmcom
Copy link
Member

@naveenkaje, thank you for your changes.
@bridadan @theotherjimmy @ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

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.

Thanks for the fix!

@naveenkaje naveenkaje requested review from bridadan and removed request for a team February 14, 2019 19:43
@cmonr
Copy link
Contributor

cmonr commented Feb 15, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Feb 15, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 1
Build artifacts

@cmonr cmonr merged commit 883b8b8 into ARMmbed:master Feb 15, 2019
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.

6 participants