add timeout to unit tests
This commit is contained in:
parent
0d66db35aa
commit
28f87d6561
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ echo '=== Testing anglais ==='
|
||||||
for file in $(find tests -type f); do
|
for file in $(find tests -type f); do
|
||||||
echo "-v- Test-running file $file -v-"
|
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-"
|
echo "-x- Error -x-"
|
||||||
errors+=("$file")
|
errors+=("$file")
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue