]> git.sur5r.net Git - u-boot/commitdiff
test/py: use absolute dts path in vboot test
authorStephen Warren <swarren@nvidia.com>
Mon, 18 Jul 2016 16:07:25 +0000 (10:07 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 18:46:24 +0000 (14:46 -0400)
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@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_vboot.py

index c77989591c7e094f5a637dac0f40718d7e24de9f..25a78324e25dabccb0ce2ad8471b34edea7a3c42 100644 (file)
@@ -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'