[LTP] [PATCH] vmcp: skip test on non-s390x architectures

Sowmya Indranna Sowmya.Indranna@ibm.com
Tue Mar 24 17:05:14 CET 2026


Agree, the test results in failed state when run which should be part of skip tests, complete details are in the issue https://github.com/linux-test-project/ltp/issues/1298 for reference.

Thanks
Sowmya Indranna
________________________________
From: Cyril Hrubis <chrubis@suse.cz>
Sent: Tuesday, March 24, 2026 9:30 PM
To: Sowmya Indranna <Sowmya.Indranna@ibm.com>
Cc: ltp@lists.linux.it <ltp@lists.linux.it>
Subject: [EXTERNAL] Re: [LTP] [PATCH] vmcp: skip test on non-s390x architectures

Hi!
> 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
> +}

The test has TST_NEEDS_CMDS="vmcp" it shouldn't even start unless there
is vmcp installed. And would expect that vmcp is not installed unless we
are on s390x.

--
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list