From 2d9ef5b5fc87f42c02fb7165cc79e54f2b91401a Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 20 Mar 2021 08:37:26 +0200 Subject: [PATCH] tests: test for mbrola voice combined with a voice variant --- tests/mbrola.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/mbrola.test b/tests/mbrola.test index 904a89d5..01c655a8 100755 --- a/tests/mbrola.test +++ b/tests/mbrola.test @@ -7,7 +7,8 @@ check_hashcmd() { } check_voice_folder() { - voice_file=${1#mb-} + voice_file=${1#mb-} # remove mb- prefix + voice_file=${voice_file%+*} # remove variant suffix if [ -f "/usr/share/mbrola/$voice_file" ]; then voice_file="/usr/share/mbrola/$voice_file" elif [ -f "/usr/share/mbrola/$voice_file/$voice_file" ]; then @@ -59,5 +60,4 @@ else fi test_voice mb-fr4 31fae066f45d4a9dc56289344f28dd00bce77875 "Bonjour" - - +test_voice mb-fr4+announcer f62c9cad15df194ac7cedfcfb36b6d9ccc70a634 "Bonjour" # mbrola + variant