Fix home direcroty path in trovestack script

This simple fix solves "no such file or directory" error when user
home directory is not prefixed by /home.

This is the case, for example in devstack, where stack user home is
set to /opt/stack/.

Lets use $HOME variable to determine user home location.

Change-Id: I07432d27e1a2035296bc62793fecbe13d0265e7b
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
This commit is contained in:
Marcin Piwowarczyk 2018-10-26 20:21:19 +02:00
parent 9d1bb44bc9
commit be17146943
1 changed files with 1 additions and 1 deletions

View File

@ -1341,7 +1341,7 @@ function cmd_gate_tests() {
TROVESTACK_DUMP_ENV=true
# Devstack vm-gate runs as a non-ubuntu user, but needs to connect to the guest image as ubuntu
echo "User=ubuntu" >> /home/$USER/.ssh/config
echo "User=ubuntu" >> $HOME/.ssh/config
# Fix iptables rules that prevent amqp connections from the devstack box to the guests
sudo iptables -D openstack-INPUT -j REJECT --reject-with icmp-host-prohibited || true