All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] vmcp: skip test on non-s390x architectures
@ 2026-03-24 14:33 sowmya.indranna--- via ltp
  2026-03-24 16:00 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: sowmya.indranna--- via ltp @ 2026-03-24 14:33 UTC (permalink / raw)
  To: ltp; +Cc: Sowmya Indranna

From: Sowmya Indranna <sowmya.indranna@ibm.com>

The vmcp test is specific to s390x systems and is not supported on
other architectures such as ppc64le. Currently, the test fails on
unsupported platforms.

Add an architecture check to skip execution on non-s390x systems
by reporting TCONF, avoiding false test failures.

Signed-off-by: Sowmya Indranna <sowmya.indranna@ibm.com>
---
 testcases/commands/vmcp/vmcp_m.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testcases/commands/vmcp/vmcp_m.sh b/testcases/commands/vmcp/vmcp_m.sh
index 3924a6e11..e40dec4bd 100644
--- a/testcases/commands/vmcp/vmcp_m.sh
+++ b/testcases/commands/vmcp/vmcp_m.sh
@@ -15,6 +15,15 @@ TST_CNT=2
 TST_TESTFUNC=vmcp_main
 TST_NEEDS_CMDS="vmcp"
 
+# Check if running on s390x architecture
+check_arch()
+{
+	local arch=$(uname -m)
+	if [ "$arch" != "s390x" ]; then
+		tst_brk TCONF "vmcp test requires s390x architecture, current: $arch"
+	fi
+}
+
 vmcp_run()
 {
 
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2026-03-24 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 14:33 [LTP] [PATCH] vmcp: skip test on non-s390x architectures sowmya.indranna--- via ltp
2026-03-24 16:00 ` Cyril Hrubis
2026-03-24 16:05   ` Sowmya Indranna via ltp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.