[Promise test case] Use proper way to get parameters from yaml
[functest.git] / testcases / features / sfc / server_presetup_CI.bash
index 785e7a7..f959ced 100755 (executable)
@@ -4,6 +4,7 @@ ssh_options='-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
 BASEDIR=`dirname $0`
 INSTALLER_IP=${INSTALLER_IP:-10.20.0.2}
 
+pushd $BASEDIR
 ip=`sshpass -p r00tme ssh $ssh_options root@${INSTALLER_IP} 'fuel node'|grep controller|awk '{print $10}' | head -1`
 echo $ip
 sshpass -p r00tme scp $ssh_options set-up-tacker.sh ${INSTALLER_IP}:/root