mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-04 01:53:27 +08:00
buildman: Don't use the local settings when running tests
We should create a test setting file when running testes, not use whatever happens to be on the local machine. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7024ab6316
commit
cc935295f2
@ -24,6 +24,16 @@ import commit
|
||||
import terminal
|
||||
import toolchain
|
||||
|
||||
settings_data = '''
|
||||
# Buildman settings file
|
||||
|
||||
[toolchain]
|
||||
main: /usr/sbin
|
||||
|
||||
[toolchain-alias]
|
||||
x86: i386 x86_64
|
||||
'''
|
||||
|
||||
errors = [
|
||||
'''main.c: In function 'main_loop':
|
||||
main.c:260:6: warning: unused variable 'joe' [-Wunused-variable]
|
||||
@ -113,8 +123,11 @@ class TestBuild(unittest.TestCase):
|
||||
self.boards.AddBoard(board.Board(*brd))
|
||||
self.boards.SelectBoards([])
|
||||
|
||||
# Add some test settings
|
||||
bsettings.Setup(None)
|
||||
bsettings.AddFile(settings_data)
|
||||
|
||||
# Set up the toolchains
|
||||
bsettings.Setup()
|
||||
self.toolchains = toolchain.Toolchains()
|
||||
self.toolchains.Add('arm-linux-gcc', test=False)
|
||||
self.toolchains.Add('sparc-linux-gcc', test=False)
|
||||
|
Loading…
Reference in New Issue
Block a user