add timeout to unit tests

This commit is contained in:
Neemek 2025-09-30 16:02:39 +02:00
parent 0d66db35aa
commit 28f87d6561
Signed by: neemek
GPG key ID: 84FFE4D7D40AB25E

View file

@ -8,7 +8,7 @@ echo '=== Testing anglais ==='
for file in $(find tests -type f); do
echo "-v- Test-running file $file -v-"
if ! ./cli/cli run "$file"; then
if ! timeout 3s ./cli/cli run "$file"; then
echo "-x- Error -x-"
errors+=("$file")
else