Code Review
/
doctor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
test: fix bug: missing installer_ip in scp args
[doctor.git]
/
tests
/
run.sh
diff --git
a/tests/run.sh
b/tests/run.sh
index
ffb349a
..
39f60ca
100755
(executable)
--- a/
tests/run.sh
+++ b/
tests/run.sh
@@
-42,10
+42,11
@@
if [[ "$COMPUTE_IP" == "none" ]] ; then
fi
prepare_compute_ssh() {
fi
prepare_compute_ssh() {
+ # verify connectivity to target compute host
ping -c 1 "$COMPUTE_IP"
# get ssh key from installer node
ping -c 1 "$COMPUTE_IP"
# get ssh key from installer node
- sudo scp $ssh_opts /home/stack/.ssh/id_rsa instack_key
+ sudo scp $ssh_opts
root@"$INSTALLER_IP":
/home/stack/.ssh/id_rsa instack_key
if [ ! -r instack_key ]; then
sudo chown $(whoami):$(whoami) instack_key
fi
if [ ! -r instack_key ]; then
sudo chown $(whoami):$(whoami) instack_key
fi