mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
buildman: Add tests for excluding things
Add some tests for the -x flag. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f0207d77b5
commit
26d9077c9d
@ -1023,3 +1023,27 @@ endif
|
||||
result = self._RunControl('-A', 'board0')
|
||||
self.assertEqual('arm-\n', stdout.getvalue())
|
||||
self.assertEqual('', stderr.getvalue())
|
||||
|
||||
def test_exclude_one(self):
|
||||
"""Test excluding a single board from an arch"""
|
||||
self._RunControl('arm', '-x', 'board1')
|
||||
self.assertEqual(['board0'],
|
||||
[b.target for b in self._boards.get_selected()])
|
||||
|
||||
def test_exclude_arch(self):
|
||||
"""Test excluding an arch"""
|
||||
self._RunControl('-x', 'arm')
|
||||
self.assertEqual(['board2', 'board4'],
|
||||
[b.target for b in self._boards.get_selected()])
|
||||
|
||||
def test_exclude_comma(self):
|
||||
"""Test excluding a comma-separated list of things"""
|
||||
self._RunControl('-x', 'arm,powerpc')
|
||||
self.assertEqual(['board4'],
|
||||
[b.target for b in self._boards.get_selected()])
|
||||
|
||||
def test_exclude_list(self):
|
||||
"""Test excluding a list of things"""
|
||||
self._RunControl('-x', 'board2', '-x' 'board4')
|
||||
self.assertEqual(['board0', 'board1'],
|
||||
[b.target for b in self._boards.get_selected()])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user