convenience
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 11 Jan 2010 09:02:20 +0000 (09:02 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Mon, 11 Jan 2010 09:02:20 +0000 (09:02 +0000)
scripts/reboot-all.sh
scripts/trash-failed-builds.sh [new file with mode: 0644]

index cf2131b..951d0bb 100755 (executable)
@@ -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 (file)
index 0000000..72682be
--- /dev/null
@@ -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