mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] test: py: dm: skip test if veritysetup command is disabled
@ 2025-10-20 18:28 Ahmad Fatoum
  2025-10-20 18:28 ` [PATCH 2/3] test: py: network: skip test if tftp command is missing Ahmad Fatoum
  2025-10-20 18:28 ` [PATCH 3/3] test: py: fix pycodestyle warnings Ahmad Fatoum
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-10-20 18:28 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The test depends on veritysetup being available, so skip it if this is
not the case.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-20 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-20 18:28 [PATCH 1/3] test: py: dm: skip test if veritysetup command is disabled Ahmad Fatoum
2025-10-20 18:28 ` [PATCH 2/3] test: py: network: skip test if tftp command is missing Ahmad Fatoum
2025-10-20 18:28 ` [PATCH 3/3] test: py: fix pycodestyle warnings Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox