[pisa-src] r2508 - in trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop: . node_hook

  • From: Samuel Richter <samuel.richter@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 04 Apr 2011 15:11:09 +0200

Author: richter
Date: Mon Apr  4 15:11:09 2011
New Revision: 2508

Log:
add stop action to virtual testbed

Added:
   trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop/
   trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop/node_hook

Added: trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop/node_hook
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop/node_hook Mon Apr 
 4 15:11:09 2011        (r2508)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+echo "stopping $NODE "
+for CLASS in $(cat $BUILD_PATH/${NODE}_classes); do
+    CLASS_PATH="$TESTBED_PATH/plugins/classes/$CLASS"
+    if [ -d "$CLASS_PATH" ]; then
+        [ -f "$CLASS_PATH/stop" ] && . $CLASS_PATH/stop
+    fi
+done
+echo "                        ... done"
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2508 - in trunk/tools/testbed/pisa-testbed_vms/plugins/actions/stop: . node_hook - Samuel Richter