The test depends on veritysetup being available, so skip it if this is not the case.
Signed-off-by: Ahmad Fatoum <[email protected]> --- test/py/test_dm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/py/test_dm.py b/test/py/test_dm.py index adeb9cbe03c9..dc4e05cc77c8 100644 --- a/test/py/test_dm.py +++ b/test/py/test_dm.py @@ -2,7 +2,7 @@ import re import pytest -from .helper import of_get_property +from .helper import skip_disabled import os, subprocess, shutil @@ -59,7 +59,10 @@ def reset_pwd(barebox): yield barebox.run("cd") -def test_dm_verity(barebox, dm_testdata): + +def test_dm_verity(barebox, barebox_config, dm_testdata): + skip_disabled(barebox_config, "CONFIG_CMD_VERITYSETUP") + barebox.run_check("cd /mnt/9p/testfs/dm") # Since commands run in a subshell, export the root hash in a -- 2.47.3
