Permalink
Browse files

Do not run weekly benchmarks on slow boards

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 7, 2019
1 parent a21be39 commit 7cae359d028fd94085a177f0de3809e8fa04ee04
Showing with 6 additions and 0 deletions.
  1. +6 −0 benchmark.sh
@@ -10,6 +10,12 @@ fi
# Set a runtime
if [[ -f /var/log/nems/benchmarks/runtime ]]; then
lastruntime=`cat /var/log/nems/benchmarks/runtime`
if [ "$lastruntime" -gt "18000" ]; then
# Don't run weekly benchmark on boards that take longer than 10 minutes to do so
echo "Benchmarks take too long on this board. Aborting."
echo "Stats for this board will be based on first run."
exit 1
fi
thisruntime=$(($lastruntime+120)) # +2 minutes from the last runtime
else
thisruntime=18000 # 10 minutes

0 comments on commit 7cae359

Please sign in to comment.