Don't delete test outputs and only run cmp on srt
Signed-off-by: rany <rany2@riseup.net>
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -158,3 +158,7 @@ cython_debug/
|
|||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
|
# Edge-TTS specific ignores
|
||||||
|
*.mp3
|
||||||
|
*.srt
|
||||||
|
|||||||
@@ -20,12 +20,8 @@ ret=0
|
|||||||
# compare files to make sure all are the same
|
# compare files to make sure all are the same
|
||||||
for i in {b..z}
|
for i in {b..z}
|
||||||
do
|
do
|
||||||
cmp tests/001-long-text_a.mp3 "tests/001-long-text_${i}.mp3" || ret=1
|
|
||||||
cmp tests/001-long-text_a.srt "tests/001-long-text_${i}.srt" || ret=1
|
cmp tests/001-long-text_a.srt "tests/001-long-text_${i}.srt" || ret=1
|
||||||
done
|
done
|
||||||
|
|
||||||
# clean up
|
|
||||||
rm tests/001-long-text_*.mp3 tests/001-long-text_*.srt
|
|
||||||
|
|
||||||
# exit with return code
|
# exit with return code
|
||||||
exit "${ret}"
|
exit "${ret}"
|
||||||
|
|||||||
Reference in New Issue
Block a user