Merge "allow running test_vimconn without user ssh keys. Change installation to copy .gitignore with common parameters"
diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh
index 9aaf028..c7e03aa 100755
--- a/scripts/install-openmano.sh
+++ b/scripts/install-openmano.sh
@@ -264,6 +264,7 @@
##### DOWNLOAD SOURCE #####
#################################################################'
su $SUDO_USER -c 'git clone '"${GIT_URL}"' openmano'
+ su $SUDO_USER -c 'cp openmano/.gitignore-common openmano/.gitignore'
#[[ -z $DEVELOP ]] && su $SUDO_USER -c 'git checkout <tag version>'
fi
diff --git a/test/test_vimconn.sh b/test/test_vimconn.sh
index aedf20a..7542d6c 100755
--- a/test/test_vimconn.sh
+++ b/test/test_vimconn.sh
@@ -268,13 +268,8 @@
#USER_KEY=""
key_param1=""
key_param2=""
- #for file_key in ${HOME}/.ssh/*.pub
- #do
- # [[ -n ${USER_KEY} ]] && USER_KEY="${USER_KEY},"
- # USER_KEY="${USER_KEY}$(cat $file_key)"
- #done
- #[[ -n ${USER_KEY} ]] && key_param1="--keypair=${USER}:${USER_KEY}" && key_param2="--keypair=${USER_KEY}"
- key_param1=--keypair-auto
+ #add user keys if present at .ssh
+ ls ${HOME}/.ssh/*.pub > /dev/null 2>&1 && key_param1=--keypair-auto
for sce in simple complex2
do