Commit c6fae525 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

check for timeouts

parent 8e8a13af
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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"