Loading ci_cd/problem3.yml +5 −1 Original line number Diff line number Diff line Loading @@ -60,12 +60,16 @@ benchmark: - set -o pipefail - | set +e timeout 300s stdbuf -oL ./extra3 > extra3.out timeout 450s stdbuf -oL ./extra3 > extra3.out STATUS=$? set -e context="$(tail -n 10 extra3.out | tail -c 300)" if [ "$STATUS" -eq 124 ]; then echo "Timeout!" exit 1 fi if [ "$STATUS" -eq 255 ]; then echo "Context: $context" echo "one of the sorts was wrong - job failed" Loading Loading
ci_cd/problem3.yml +5 −1 Original line number Diff line number Diff line Loading @@ -60,12 +60,16 @@ benchmark: - set -o pipefail - | set +e timeout 300s stdbuf -oL ./extra3 > extra3.out timeout 450s stdbuf -oL ./extra3 > extra3.out STATUS=$? set -e context="$(tail -n 10 extra3.out | tail -c 300)" if [ "$STATUS" -eq 124 ]; then echo "Timeout!" exit 1 fi if [ "$STATUS" -eq 255 ]; then echo "Context: $context" echo "one of the sorts was wrong - job failed" Loading