summaryrefslogtreecommitdiff
path: root/test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
diff options
context:
space:
mode:
authorJoao Marcos Costa <joaomarcos.costa@bootlin.com>2020-08-10 15:37:27 +0300
committerTom Rini <trini@konsulko.com>2020-08-10 17:37:50 +0300
commit74795f1e35b624cdba451aeaea0af2f1211e4a91 (patch)
tree55aa5afb723e1d75c135a9ba9703047f3f881a6b /test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
parent7d080773347c1f6e0e896d9284134a2a411155d6 (diff)
downloadu-boot-74795f1e35b624cdba451aeaea0af2f1211e4a91.tar.xz
test/py: fix SquashFS tests
Use "cons.config.build_dir" instead of writing to the source directory (read-only). This will fix the test failures in Azure. Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Diffstat (limited to 'test/py/tests/test_fs/test_squashfs/test_sqfs_load.py')
-rw-r--r--test/py/tests/test_fs/test_squashfs/test_sqfs_load.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/py/tests/test_fs/test_squashfs/test_sqfs_load.py b/test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
index 9b828fdf04..eb1baae5c5 100644
--- a/test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
+++ b/test/py/tests/test_fs/test_squashfs/test_sqfs_load.py
@@ -12,9 +12,10 @@ from sqfs_common import *
@pytest.mark.buildconfigspec('fs_squashfs')
@pytest.mark.requiredtool('mksquashfs')
def test_sqfs_load(u_boot_console):
- sqfs_generate_image()
+ cons = u_boot_console
+ sqfs_generate_image(cons)
command = "sqfsload host 0 $kernel_addr_r "
- path = "test/py/tests/test_fs/test_squashfs/sqfs"
+ path = os.path.join(cons.config.build_dir, "sqfs")
try:
output = u_boot_console.run_command("host bind 0 " + path)
@@ -29,5 +30,5 @@ def test_sqfs_load(u_boot_console):
output = u_boot_console.run_command(command + "sym")
assert "100 bytes read in" in output
except:
- sqfs_clean()
- sqfs_clean()
+ sqfs_clean(cons)
+ sqfs_clean(cons)