Artifact 02152a07a20c6a8d378de4a78d454e79ea0a0800:
- Executable file utils/nbfind — part of check-in [0b313f7218] at 2013-09-13 18:17:39 on branch v1.55 — Somewhat speculative and partial fix for the non updating state/status on test run with transport=fs (user: mrwellan, size: 559) [annotate] [blame] [check-ins using]
- Executable file utils/nbload — part of check-in [dfc126f3ca] at 2013-09-19 14:37:25 on branch v1.55 — Pulled in a long lost change to rolling up pass/fail to toplevel tests. Reverted nbfind and added nbload (user: mrwellan, size: 559) [annotate] [blame] [check-ins using]
#!/bin/bash # load=`uptime|awk '{print $10}'|cut -d, -f1` load=`uptime|perl -pe 's/.*: (\d+.\d+),.*/$1/'` if which cpucheck > /dev/null;then numcpu=`cpucheck|tail -1|awk '{print $6}'` else numcpu=`lscpu|grep "CPU.s.:"|awk '{print $2}'` fi lperc=`echo "100 * $load / $numcpu"|bc` if [[ "x$MAX_ALLOWED_LOAD" == "x" ]]; then max_load=50 else max_load=$MAX_ALLOWED_LOAD fi if [[ $lperc -lt $max_load ]];then echo "$@" | at now + 0 minutes elif [[ "x$NBLAUNCHER" == "x" ]];then echo "nbfind $@" | at now + 2 minutes else $NBLAUNCHER "$@" fi