]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test/py: Allow tests to control the sandbox device-tree file
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jul 2016 15:40:36 +0000 (09:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:33 +0000 (18:22 -0400)
Normally tests will run with the test.dtb file designed for this purpose.
However, the verified boot tests need to run with their own device-tree
file, containing a public key.

Make the device-tree file a config option so that it can be adjusted by
tests. The default is to keep the current behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
test/py/conftest.py
test/py/u_boot_console_sandbox.py

index 449f98bee39cb1ecc2d7758af18e72e98d7283a0..5b16456e6b2331c3ead46f3630c2a14a20254fd6 100644 (file)
@@ -179,6 +179,7 @@ def pytest_configure(config):
     ubconfig.board_type = board_type
     ubconfig.board_identity = board_identity
     ubconfig.gdbserver = gdbserver
+    ubconfig.dtb = build_dir + '/arch/sandbox/dts/test.dtb'
 
     env_vars = (
         'board_type',
index 04654ae8c9fee10a84944cbddcd632ce40114d72..b4404971c48b0e35ace5799857d629d7e8d34851 100644 (file)
@@ -46,7 +46,7 @@ class ConsoleSandbox(ConsoleBase):
             self.config.build_dir + '/u-boot',
             '-v',
             '-d',
-            self.config.build_dir + '/arch/sandbox/dts/test.dtb'
+            self.config.dtb
         ]
         return Spawn(cmd, cwd=self.config.source_dir)