From 4c68b44817ec1d9588fec87e20d9bfed7aa13a3e Mon Sep 17 00:00:00 2001 From: Pawel Langowski Date: Mon, 6 Oct 2025 11:59:28 +0000 Subject: [PATCH] test-case: latency-metrics.sh: Fail test on unsuccessful option validation Tests will fail instead of skipping if wrong latency parameters are provided. Signed-off-by: Pawel Langowski --- test-case/latency-metrics.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-case/latency-metrics.sh b/test-case/latency-metrics.sh index 28aef80d..f2d1eebc 100755 --- a/test-case/latency-metrics.sh +++ b/test-case/latency-metrics.sh @@ -123,11 +123,11 @@ check_latency_options() { if [ -n "${alsa_device}" ]; then if [ -n "${pcm_p}" ] || [ -n "${pcm_c}" ]; then - skip_test "Give either ALSA device, or ALSA playback/capture pcm-s." + die "Give either ALSA device, or ALSA playback/capture pcm-s." fi JACKD_BACKEND_OPTIONS=("-d" "${alsa_device}" "${JACKD_BACKEND_OPTIONS[@]}") elif [ -z "${pcm_p}" ] || [ -z "${pcm_c}" ]; then - skip_test "No playback or capture ALSA PCM is specified." + die "No playback or capture ALSA PCM is specified." else JACKD_BACKEND_OPTIONS=("-P" "${pcm_p}" "-C" "${pcm_c}" "${JACKD_BACKEND_OPTIONS[@]}") fi @@ -138,7 +138,7 @@ check_latency_options() fi if [ -z "${port_playback}" ] || [ -z "${port_capture}" ]; then - skip_test "No playback or capture JACK port is specified." + die "No playback or capture JACK port is specified." fi }