Hi,

in order to get testing (step 8) into better shape, i propose the following changes to the testing/ssh_user_tests

the purpose is to make it more robust - ie. fail less on minor issues.

Also, the script is currently not installed by oscar-base-6.0.4r8663-1.noarch, which i would guess is supposed to install it, as it also installs the other testing files.

kind regards
Thilo
[r...@buster testing]# svn diff
Index: ssh_user_tests
===================================================================
--- ssh_user_tests      (revision 8676)
+++ ssh_user_tests      (working copy)
@@ -10,9 +10,15 @@
 # Authors: Jason Brechin
 #          Jeremy Enos

+[ -z "${OSCAR_TESTPRINT}" ] && OSCAR_TESTPRINT="./testprint"

 node1=$1

+if [ -z "${node1}" ]; then
+  echo "ERROR: no node given!"
+  exit
+fi
+
 if ping -c 1 $node1 >/dev/null 2>&1
 then
   $OSCAR_TESTPRINT --label "SSH ping test" -p
@@ -21,7 +27,7 @@
 fi

 $OSCAR_TESTPRINT --label "SSH server->node"
-if ssh $node1 hostname > /dev/null 2>&1
+if ssh -o 'StrictHostKeyChecking no' $node1 hostname > /dev/null 2>&1
 then
   $OSCAR_TESTPRINT --label "SSH server->node" -p
 else
@@ -30,7 +36,7 @@

 $OSCAR_TESTPRINT --label "SSH node->server"
 server=`hostname`
-if ssh $node1 ssh $server hostname >/dev/null 2>&1
+if ssh $node1 "ssh -o 'StrictHostKeyChecking no' $server hostname >/dev/null 
2>&1"
 then
   $OSCAR_TESTPRINT --label "SSH node->server" -p
 else
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to