File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33set -e
4+ set -o pipefail
45
56# #
67# # Case Name: check-audio-equalizer.sh
@@ -51,6 +52,10 @@ func_test_eq()
5152 local id=$1
5253 local conf=$2
5354 local double_quoted_id=\" " $id " \"
55+ local default_conf=" /tmp/default_${id} .txt"
56+ local ret=0
57+
58+ sof-ctl -Dhw:" $sofcard " -c name=" $double_quoted_id " | tail -n1 > " $default_conf "
5459
5560 dlogc " sof-ctl -Dhw:$sofcard -c name=$double_quoted_id -s $conf "
5661 sof-ctl -Dhw:" $sofcard " -c name=" $double_quoted_id " -s " $conf " || {
@@ -59,10 +64,13 @@ func_test_eq()
5964 }
6065
6166 dlogc " $cmd -D $dev -f $fmt -c $channel -r $rate -d $duration $dummy_file "
62- $cmd -D " $dev " -f " $fmt " -c " $channel " -r " $rate " -d " $duration " " $dummy_file " || {
67+ $cmd -D " $dev " -f " $fmt " -c " $channel " -r " $rate " -d " $duration " " $dummy_file " || ret=$?
68+
69+ sof-ctl -Dhw:" $sofcard " -c name=" $double_quoted_id " -s " $default_conf "
70+ if [ $ret -ne 0 ]; then
6371 dloge " Equalizer test failure with $conf "
6472 return 1
65- }
73+ fi
6674 sleep 1
6775}
6876
You can’t perform that action at this time.
0 commit comments