From 2e319a2c8a2da324f80eb727abce92936bacda0d Mon Sep 17 00:00:00 2001 From: huangyuxin Date: Mon, 25 Apr 2022 06:03:05 +0000 Subject: [PATCH] fix test_cli, test=doc --- tests/unit/cli/test_cli.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unit/cli/test_cli.sh b/tests/unit/cli/test_cli.sh index 926b1ac0..59f31516 100755 --- a/tests/unit/cli/test_cli.sh +++ b/tests/unit/cli/test_cli.sh @@ -20,11 +20,17 @@ paddlespeech asr --model deepspeech2online_aishell --input ./zh.wav paddlespeech asr --model deepspeech2offline_librispeech --lang en --input ./en.wav # long audio restriction +{ 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 -if [ $? -ne -1 ]; then +if [ $? -ne 255 ]; then + echo "Time restriction not passed" exit 1 fi +} && +{ + echo "Time restriction passed" +} # Text To Speech paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!"