diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index c77989591c7e094f5a637dac0f40718d7e24de9f..25a78324e25dabccb0ce2ad8471b34edea7a3c42 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'