Merge pull request #1778 from Jackwaterveg/cli

[CLI] add color for test_cli
pull/1783/head
Hui Zhang 3 years ago committed by GitHub
commit 32e0d309dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,12 +24,12 @@ paddlespeech asr --model deepspeech2offline_librispeech --lang en --input ./en.w
wget -c wget https://paddlespeech.bj.bcebos.com/datasets/single_wav/zh/test_long_audio_01.wav wget -c wget https://paddlespeech.bj.bcebos.com/datasets/single_wav/zh/test_long_audio_01.wav
paddlespeech asr --input test_long_audio_01.wav paddlespeech asr --input test_long_audio_01.wav
if [ $? -ne 255 ]; then if [ $? -ne 255 ]; then
echo "Time restriction not passed" echo -e "\e[1;31mTime restriction not passed\e[0m"
exit 1 exit 1
fi fi
} && } &&
{ {
echo "Time restriction passed" echo -e "\033[32mTime restriction passed\033[0m"
} }
# Text To Speech # Text To Speech
@ -77,4 +77,4 @@ paddlespeech stats --task vector
paddlespeech stats --task st paddlespeech stats --task st
echo "Test success !!!" echo -e "\033[32mTest success !!!\033[0m"

Loading…
Cancel
Save