From d6f6a4359ffbc8503403e6bbbd3b14722b39cb30 Mon Sep 17 00:00:00 2001 From: Bob Ball Date: Fri, 14 Feb 2014 16:23:35 +0000 Subject: [PATCH] Add the missing file --- run_tests_remote.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 run_tests_remote.sh diff --git a/run_tests_remote.sh b/run_tests_remote.sh new file mode 100755 index 0000000..b45f0a1 --- /dev/null +++ b/run_tests_remote.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -eux + +THISDIR=$(dirname $(readlink -f $0)) +KEY_PATH="$1" +INSTANCE_NAME="$2" +TEST_PROJECT="${3:-nova}" +TEST_REF="${3:-refs/changes/97/66597/4}" +APPLIANCE_NAME="devstack" +RUN_TESTS_SCRIPT="$THISDIR/run_tests.sh" + +. $THISDIR/functions + +get_dependencies + +IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME) + +eval $(ssh-agent) + +ssh-add $KEY_PATH + +set +x + +new_env="INSTANCE_NAME=$INSTANCE_NAME; ZUUL_URL=https://review.openstack.org; ZUUL_PROJECT=$TEST_PROJECT; ZUUL_REF=$TEST_REF" +new_env="$new_env; APPLIANCE_NAME=$APPLIANCE_NAME" +cat $RUN_TESTS_SCRIPT | sed -e "s@#REPLACE_ENV@$new_env@" | remote-bash jenkins@$IP + +RESULT="$?" +set -x + +ssh-agent -k +exit $RESULT