diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-08-28 01:54:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-28 01:54:21 +0000 |
commit | ac3c3a04ccd90a971736fb002d98611ec43b3b24 (patch) | |
tree | 5e22e3cdc29888d8753ab9a5d2845453af153f7b /tests/ci/launch_containers_by_testsuite.sh | |
parent | e8e46c97c8e3b7b77a598cd39e1f938e0bbef3c0 (diff) | |
parent | 9eb2005c087a6c064fd2880edd253028e3ea1513 (diff) |
Merge "Refactor storperf testing scripts into ansible role"
Diffstat (limited to 'tests/ci/launch_containers_by_testsuite.sh')
-rwxr-xr-x | tests/ci/launch_containers_by_testsuite.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ci/launch_containers_by_testsuite.sh b/tests/ci/launch_containers_by_testsuite.sh index b55ba09c..08b80028 100755 --- a/tests/ci/launch_containers_by_testsuite.sh +++ b/tests/ci/launch_containers_by_testsuite.sh @@ -7,6 +7,8 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +export ENV_FILE="${WORKSPACE}/env_file" + if [[ -e $ENV_FILE ]];then rm $ENV_FILE fi @@ -51,8 +53,8 @@ if [[ "$TEST_SUITE" == 'compute' ]];then elif [[ "$TEST_SUITE" == 'storage' ]];then script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng - $WORKSPACE/releng/utils/fetch_os_creds.sh -i $INSTALLER_TYPE -a $INSTALLER_IP -d $WORKSPACE/openrc + curl https://git.opnfv.org/releng/plain/utils/fetch_os_creds.sh | bash -s -- \ + -i $INSTALLER_TYPE -a $INSTALLER_IP -d $WORKSPACE/openrc grep "export" $WORKSPACE/openrc | sed "s/export //" >> $ENV_FILE echo "DOCKER_TAG=$DOCKER_TAG" >> $ENV_FILE |