Whamcloud - gitweb
LU-364 remove . - in node name
authorsarah <sarah@whamcloud.com>
Thu, 2 Jun 2011 04:56:07 +0000 (21:56 -0700)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 7 Jun 2011 14:42:20 +0000 (07:42 -0700)
Replace . and - with _ in the node name, so it can be identified
as a variable in bash.

Change-Id: I7b5de328728c0b2433e2cea73d3520648eb9fdf2
Signed-off-by: sarah <sarah@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/885
Tested-by: Hudson
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/test-framework.sh

index ab4d286..477f70a 100644 (file)
@@ -928,7 +928,8 @@ check_progs_installed () {
 }
 
 node_var_name() {
-    echo __$(echo $1 | tr '-' 'X')
+    local node=${1//./_}
+    echo __${node//-/_}
 }
 
 start_client_load() {