From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 1/3] test: py: dm: skip test if veritysetup command is disabled
Date: Mon, 20 Oct 2025 20:28:36 +0200 [thread overview]
Message-ID: <20251020182841.590206-1-a.fatoum@barebox.org> (raw)
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
next reply other threads:[~2025-10-20 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 18:28 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251020182841.590206-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox