Skip to content

Commit fa7f3ed

Browse files
PLangowskiredzynix
authored andcommitted
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 <pawelx.langowski@intel.com>
1 parent c55affc commit fa7f3ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-case/latency-metrics.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ check_latency_options()
127127
{
128128
if [ -n "${alsa_device}" ]; then
129129
if [ -n "${pcm_p}" ] || [ -n "${pcm_c}" ]; then
130-
skip_test "Give either ALSA device, or ALSA playback/capture pcm-s."
130+
die "Give either ALSA device, or ALSA playback/capture pcm-s."
131131
fi
132132
JACKD_BACKEND_OPTIONS=("-d" "${alsa_device}" "${JACKD_BACKEND_OPTIONS[@]}")
133133
elif [ -z "${pcm_p}" ] || [ -z "${pcm_c}" ]; then
134-
skip_test "No playback or capture ALSA PCM is specified."
134+
die "No playback or capture ALSA PCM is specified."
135135
else
136136
JACKD_BACKEND_OPTIONS=("-P" "${pcm_p}" "-C" "${pcm_c}" "${JACKD_BACKEND_OPTIONS[@]}")
137137
fi
@@ -142,7 +142,7 @@ check_latency_options()
142142
fi
143143

144144
if [ -z "${port_playback}" ] || [ -z "${port_capture}" ]; then
145-
skip_test "No playback or capture JACK port is specified."
145+
die "No playback or capture JACK port is specified."
146146
fi
147147
}
148148

0 commit comments

Comments
 (0)