mirror of https://github.com/ARMmbed/mbed-os.git
Updated config tests to match change in error message
parent
9bd7a2fe72
commit
a5ea143c77
|
@ -149,7 +149,7 @@ class ConfigCumulativeOverride:
|
|||
def remove_cumulative_overrides(self, overrides):
|
||||
for override in overrides:
|
||||
if override in self.additions:
|
||||
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name, override))
|
||||
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name[:-1], override))
|
||||
|
||||
self.removals |= set(overrides)
|
||||
|
||||
|
@ -157,7 +157,7 @@ class ConfigCumulativeOverride:
|
|||
def add_cumulative_overrides(self, overrides):
|
||||
for override in overrides:
|
||||
if (override in self.removals or (self.strict and override not in self.additions)):
|
||||
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name, override))
|
||||
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name[:-1], override))
|
||||
|
||||
self.additions |= set(overrides)
|
||||
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
expected_results = {
|
||||
"K64F": {
|
||||
"desc": "test feature collisions",
|
||||
"exception_msg": "Configuration conflict. Feature IPV4 both added and removed."
|
||||
"exception_msg": "Configuration conflict. The feature IPV4 both added and removed."
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
expected_results = {
|
||||
"K64F": {
|
||||
"desc": "test recursive feature collisions",
|
||||
"exception_msg": "Configuration conflict. Feature UVISOR both added and removed."
|
||||
"exception_msg": "Configuration conflict. The feature UVISOR both added and removed."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue