Skip to content

Commit 4c68b44

Browse files
committed
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 deffa76 commit 4c68b44

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test-case/latency-metrics.sh

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

140140
if [ -z "${port_playback}" ] || [ -z "${port_capture}" ]; then
141-
skip_test "No playback or capture JACK port is specified."
141+
die "No playback or capture JACK port is specified."
142142
fi
143143
}
144144

0 commit comments

Comments
 (0)