From: thierry Date: Mon, 11 Jan 2010 09:02:20 +0000 (+0000) Subject: convenience X-Git-Tag: foo~226 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8aa9de3685a213bbb17653452f7e1c63130e5089;p=infrastructure.git convenience --- diff --git a/scripts/reboot-all.sh b/scripts/reboot-all.sh index cf2131b..951d0bb 100755 --- a/scripts/reboot-all.sh +++ b/scripts/reboot-all.sh @@ -1,10 +1,10 @@ #!/bin/bash -echo 'cleaning trackers on testmaster' +echo '==================== cleaning trackers on testmaster' ssh root@testmaster.onelab.eu rm 'tracker*' for h in mirror build build2 build3 testplc testqemu1 testqemu2 testqemu3; do - echo "rebooting $h.onelab.eu" + echo "==================== rebooting $h.onelab.eu" host $h.onelab.eu ssh root@$h.onelab.eu shutdown -r now done diff --git a/scripts/trash-failed-builds.sh b/scripts/trash-failed-builds.sh new file mode 100644 index 0000000..72682be --- /dev/null +++ b/scripts/trash-failed-builds.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +[[ -d $1 ]] && { cd $1; echo "cwd now is $(pwd)"; shift; } + +for ko in *.log.txt.ko ; do + echo ============== $i + base=$(basename $ko .log.txt.ko) + for f in $base $base.log.txt $ko ; do + [ -e $f ] && { echo "Trashing $f" ; mv $f /build/trash ; } + done +done