summaryrefslogtreecommitdiffstats
path: root/tools/keystone
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 13:45:43 +0100
committerDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2017-01-31 13:45:43 +0100
commit877657a5f54fb7a49d2f423fb2080abcb2e6f2e0 (patch)
treeb6eb7a511fb70285ad01130af3efca79b3a06503 /tools/keystone
parentcefd73bd2530acf3700bdc65f73deb2b8a1870fa (diff)
Fix export in the run.sh
Change-Id: I69075bf7ad5f9900ee4e47596dcb61c85f70d617 Signed-off-by: Dimitri Mazmanov <dimitri.mazmanov@ericsson.com>
Diffstat (limited to 'tools/keystone')
-rwxr-xr-xtools/keystone/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/keystone/run.sh b/tools/keystone/run.sh
index 8fe933f..a4dca82 100755
--- a/tools/keystone/run.sh
+++ b/tools/keystone/run.sh
@@ -20,7 +20,7 @@ set -o pipefail
INSTALLER_IP=10.20.0.2
# Runs on the jumphost
# if running as part of Jenkins job, read and create the files from/in WORKSPACE
-WORKSPACE=${WORKSPACE:-"/root"}
+export WORKSPACE=${WORKSPACE:-"/root"}
usage() {
echo "usage: $0 -a <installer_ip> -t (controller|compute) -r <runnable_script.sh> -d <data_file> -o <output_file>" >&2
@@ -94,7 +94,7 @@ function run_on_target() {
if [ -n "${output}" ]; then
#Fetch output file
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
- "ssh $ssh_options $1 \"cd /root/ && cat ${output}\"" > "${WORKSPACE}/${output}"
+ "ssh $ssh_options $1 \"cat /root/${output}\"" > ${WORKSPACE}/${output}
fi
}