X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Frun.sh;h=6572bfa556118ab176b5ad3bfbe549d94c4b0b01;hb=db32101dbd35dbd7c9887b35258c2dada87f7527;hp=07b25dff82ea962187833e17552e98980e3e1f62;hpb=4307f8d1d2653ea5ba2029bd7720c1ea6a8cdb76;p=bottlenecks.git diff --git a/ci/run.sh b/ci/run.sh index 07b25dff..6572bfa5 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -1,17 +1,19 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## set -ex -BOTTLENECKS_REPO=https://gerrit.opnfv.org/gerrit/bottlenecks - SCRIPT_DIR=`cd ${BASH_SOURCE[0]%/*};pwd` -GERRIT_REFSPEC_DEBUG=$1 - -if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then - git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD -fi +export BOTTLENECKS_TOP_DIR=$SCRIPT_DIR/../ +export GERRIT_REFSPEC_DEBUG=$1 -$SCRIPT_DIR/../utils/infra_setup/heat_template/HOT_create_instance.sh $GERRIT_REFSPEC_DEBUG +$SCRIPT_DIR/docker_run.sh set +ex -