Skip to content

[tools] Fixed infinite loop in config scan due to list comparison error #2317

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 2 commits into from
Aug 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def load_resources(self, resources):
self.add_config_files(resources.json_files)

# Add features while we find new ones
features = self.get_features()
features = set(self.get_features())
if features == prev_features:
break

Expand Down
17 changes: 17 additions & 0 deletions tools/test/config_test/test28/mbed_app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"custom_targets": {
"test_target": {
"core": "Cortex-M0",
"extra_labels": [],
"features": [],
"default_build": "standard"
}
},
"target_overrides": {
"*": {
"target.features_add": ["UVISOR"],
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
}
}
}

8 changes: 8 additions & 0 deletions tools/test/config_test/test28/test_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Testing when adding two features

expected_results = {
"test_target": {
"desc": "test uvisor feature",
"expected_features": ["UVISOR"]
}
}