mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
test/py: run sandbox in source directory
Some unit tests expect the cwd of the sandbox process to be the root of the source tree. Ensure that requirement is met. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
77bcb22d77
commit
d27f2fc1e1
2 changed files with 7 additions and 3 deletions
|
@ -44,7 +44,7 @@ class ConsoleSandbox(ConsoleBase):
|
|||
'-d',
|
||||
self.config.build_dir + '/arch/sandbox/dts/test.dtb'
|
||||
]
|
||||
return Spawn(cmd)
|
||||
return Spawn(cmd, cwd=self.config.source_dir)
|
||||
|
||||
def kill(self, sig):
|
||||
"""Send a specific Unix signal to the sandbox process.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue