summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 12:55:25 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-17 17:42:25 +0200
commit11c1b862df08e841a57c6fde5db63d7dd314302f (patch)
tree742024311e660cd08d6e6974e654b3dd685028b0
parent845674e3fb51dcbdd4e4f2e93a4e5fa4e6b311d2 (diff)
downloadrtems-11c1b862df08e841a57c6fde5db63d7dd314302f.tar.bz2
build: Allow test program item UIDs with a "-"
Update #3818.
-rwxr-xr-xwscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index d4f2efbfb7..59782c3e1b 100755
--- a/wscript
+++ b/wscript
@@ -636,7 +636,7 @@ class LibraryItem(Item):
class TestProgramItem(Item):
def __init__(self, uid, data):
super(TestProgramItem, self).__init__(uid, data)
- name = uid.split("/")[-1].upper()
+ name = uid.split("/")[-1].upper().replace("-", "_")
self.exclude = "TEST_" + name + "_EXCLUDE"
self.cppflags = "TEST_" + name + "_CPPFLAGS"
@@ -958,7 +958,9 @@ class OptionItem(Item):
self._do_append_test_cppflags(conf, name, "-DTEST_STATE_BENCHMARK=1")
def _test_state_exclude(self, conf, name):
- conf.env.append_value("ENABLE", "TEST_" + name.upper() + "_EXCLUDE")
+ conf.env.append_value(
+ "ENABLE", "TEST_" + name.upper().replace("-", "_") + "_EXCLUDE"
+ )
def _test_state_expected_fail(self, conf, name):
self._do_append_test_cppflags(