Skip to content

Commit a5ea143

Browse files
committed
Updated config tests to match change in error message
1 parent 9bd7a2f commit a5ea143

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ def __init__(self, name, additions=set(), removals=set(), strict=False):
149149
def remove_cumulative_overrides(self, overrides):
150150
for override in overrides:
151151
if override in self.additions:
152-
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name, override))
152+
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name[:-1], override))
153153

154154
self.removals |= set(overrides)
155155

156156
# Remove attr from the cumulative overrides
157157
def add_cumulative_overrides(self, overrides):
158158
for override in overrides:
159159
if (override in self.removals or (self.strict and override not in self.additions)):
160-
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name, override))
160+
raise ConfigException("Configuration conflict. The %s %s both added and removed." % (self.name[:-1], override))
161161

162162
self.additions |= set(overrides)
163163

tools/test/config_test/test23/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
expected_results = {
44
"K64F": {
55
"desc": "test feature collisions",
6-
"exception_msg": "Configuration conflict. Feature IPV4 both added and removed."
6+
"exception_msg": "Configuration conflict. The feature IPV4 both added and removed."
77
}
88
}

tools/test/config_test/test25/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
expected_results = {
44
"K64F": {
55
"desc": "test recursive feature collisions",
6-
"exception_msg": "Configuration conflict. Feature UVISOR both added and removed."
6+
"exception_msg": "Configuration conflict. The feature UVISOR both added and removed."
77
}
88
}

0 commit comments

Comments
 (0)