diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2020-11-19 12:58:54 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2020-11-24 08:01:08 -0600 |
commit | b2ea2bc33309596f864fad131e4799993b53ec46 (patch) | |
tree | 97d3cc5e754db9228070b40f22aea73f0a632d15 /wscript | |
parent | rtems: Improve rtems_interrupt_server_create() (diff) | |
download | rtems-b2ea2bc33309596f864fad131e4799993b53ec46.tar.bz2 |
wscript: Apply test state expectations correctly
The variety of expected test states are not currently applied to tests
with names containing '-' correctly due to a failure to replace '-' with
'_' before adding the CPPFLAGS to the environment for that test. This
ensures that all additions of CPPFLAGS have that replacement performed
so that the CPPFLAGS are applied properly during compilation.
Diffstat (limited to 'wscript')
-rwxr-xr-x | wscript | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -723,7 +723,7 @@ class OptionItem(Item): print("{} = {}".format(self.data["name"], value)) def _do_append_test_cppflags(self, conf, name, state): - conf.env.append_value("TEST_" + name.upper() + "_CPPFLAGS", state) + conf.env.append_value("TEST_" + name.upper().replace("-", "_") + "_CPPFLAGS", state) def _append_test_cppflags(self, conf, cic, value, arg): self._do_append_test_cppflags(conf, arg, value) |