summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-09-04 10:15:46 +1000
committerChris Johns <chrisj@rtems.org>2018-09-04 10:15:46 +1000
commit0813c87480aa6209a6c32f9952dd02ab057696c5 (patch)
tree4099b0cb2607cb14e19785324b09da66de731436
parentcovoar: Close the ELF and DWARF handles once the data is loaded. (diff)
downloadrtems-tools-0813c87480aa6209a6c32f9952dd02ab057696c5.tar.bz2
tester/bsp-builder: Fix the build jobs with more than one BSP exclude.
Excluding more than one build resulted in common builds being removed resulting in a list remove error.
-rwxr-xr-xtester/rt/check.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tester/rt/check.py b/tester/rt/check.py
index e978869..36eca39 100755
--- a/tester/rt/check.py
+++ b/tester/rt/check.py
@@ -1195,13 +1195,15 @@ class build_jobs:
self.builds = config.builds()
if self.builds is None:
raise error.general('build not found: %s' % (config.build()))
- excludes = set(config.excludes(self.arch) +
- config.bsp_excludes(self.arch, self.bsp))
+ excludes = list(set(config.excludes(self.arch) +
+ config.bsp_excludes(self.arch, self.bsp)))
+ #
+ # The build can be in the buld string delimited by '-'.
+ #
remove = []
for e in excludes:
remove += [b for b in self.builds if e in b]
- for b in remove:
- self.builds.remove(b)
+ self.builds = [b for b in self.builds if b not in remove]
self.build_set = { }
for build in self.builds:
self.build_set[build] = config.build_options(build)