[U-Boot] [PATCH] test/py: use absolute dts path in vboot test

Stephen Warren swarren at wwwdotorg.org
Mon Jul 18 18:07:25 CEST 2016


From: Stephen Warren <swarren at nvidia.com>

Without this, the test fails if the test is run with a cwd other than the
root of the U-Boot source tree.

Fixes: 8729d582595d ("test: Convert the vboot test to test/py")
Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 test/py/tests/test_vboot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index c77989591c7e..25a78324e25d 100644
--- a/test/py/tests/test_vboot.py
+++ b/test/py/tests/test_vboot.py
@@ -151,7 +151,7 @@ def test_vboot(u_boot_console):
     cons = u_boot_console
     tmpdir = cons.config.result_dir + '/'
     tmp = tmpdir + 'vboot.tmp'
-    datadir = 'test/py/tests/vboot/'
+    datadir = cons.config.source_dir + '/test/py/tests/vboot/'
     fit = '%stest.fit' % tmpdir
     mkimage = cons.config.build_dir + '/tools/mkimage'
     fit_check_sign = cons.config.build_dir + '/tools/fit_check_sign'
-- 
2.9.2



More information about the U-Boot mailing list