Don't delete test outputs and only run cmp on srt

Signed-off-by: rany <rany2@riseup.net>
This commit is contained in:
rany
2024-05-21 17:05:09 +03:00
parent 580f880bda
commit f6a35fa8d9
2 changed files with 4 additions and 4 deletions

4
.gitignore vendored
View File

@@ -158,3 +158,7 @@ cython_debug/
# 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.
#.idea/
# Edge-TTS specific ignores
*.mp3
*.srt

View File

@@ -20,12 +20,8 @@ ret=0
# compare files to make sure all are the same
for i in {b..z}
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
done
# clean up
rm tests/001-long-text_*.mp3 tests/001-long-text_*.srt
# exit with return code
exit "${ret}"