mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2317 from geky/fix-ca-config-scan
[tools] Fixed infinite loop in config scan due to list comparison errorpull/2331/merge
commit
76ea1ccb4a
|
@ -444,7 +444,7 @@ class Config:
|
||||||
self.add_config_files(resources.json_files)
|
self.add_config_files(resources.json_files)
|
||||||
|
|
||||||
# Add features while we find new ones
|
# Add features while we find new ones
|
||||||
features = self.get_features()
|
features = set(self.get_features())
|
||||||
if features == prev_features:
|
if features == prev_features:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Testing when adding two features
|
||||||
|
|
||||||
|
expected_results = {
|
||||||
|
"test_target": {
|
||||||
|
"desc": "test uvisor feature",
|
||||||
|
"expected_features": ["UVISOR"]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue