chore: added global timeout so any test would fail in case it is stuck and takes more than 3 minutes

This commit is contained in:
Valentina Novgorodtceva 2024-06-21 13:18:16 +07:00 committed by Anastasiya
parent 1ba7ba31aa
commit b3e6d49915
1 changed files with 3 additions and 2 deletions

View File

@ -161,9 +161,10 @@ pipeline {
]) {
/* Keep the --reruns flag first, or it won't work */
sh """
python3 -m pytest --reruns=1 ${flags.join(" ")} \
python3 -m pytest --reruns=1 --timeout=180 ${flags.join(" ")} \
--disable-warnings \
--alluredir=./allure-results
--alluredir=./allure-results \
-o timeout_func_only=true
"""
}
}