summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/vm_dev_setup
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-01-08 01:27:55 +0000
committerQiLiang <liangqi1@huawei.com>2016-01-09 02:44:43 +0000
commit6e490df0346e26f9e6cc5dc79029a03e1d17a454 (patch)
tree04333ceadab525e1b89497f88f7919ecb9865dc0 /utils/infra_setup/vm_dev_setup
parent27a84e7905e66c005b02706ea3489576b5873c32 (diff)
Rubbos test case pipline minor update
- Add timestamp - Fix code pull bug - Shoten test run time JIRA: BOTTLENECK-24 Change-Id: Ie83fcf0e4a4ad2da715a694118f1f9e916a5f704 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/infra_setup/vm_dev_setup')
-rwxr-xr-xutils/infra_setup/vm_dev_setup/setup_env.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/infra_setup/vm_dev_setup/setup_env.sh b/utils/infra_setup/vm_dev_setup/setup_env.sh
index f1572e05..795a0a6a 100755
--- a/utils/infra_setup/vm_dev_setup/setup_env.sh
+++ b/utils/infra_setup/vm_dev_setup/setup_env.sh
@@ -55,18 +55,22 @@ bottlenecks_download_repo()
{
echo "Bottlenecks: download bottlenecks repo"
+ sudo git config --global http.sslVerify false
if [ -d $BOTTLENECKS_REPO_DIR/.git ]; then
cd $BOTTLENECKS_REPO_DIR
sudo git pull origin master
if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then
- sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD
+ sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && sudo git checkout FETCH_HEAD
fi
cd -
else
sudo rm -rf $BOTTLENECKS_REPO_DIR
sudo git clone $BOTTLENECKS_REPO $BOTTLENECKS_REPO_DIR
if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then
- sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD
+ cd $BOTTLENECKS_REPO_DIR
+ echo "fetch $GERRIT_REFSPEC_DEBUG"
+ sudo git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && sudo git checkout FETCH_HEAD
+ cd -
fi
fi
@@ -116,6 +120,7 @@ main()
source $SCRIPT_DIR/common.sh
bottlenecks_prepare_env
+ set -x
bottlenecks_download_repo
bottlenecks_config_hosts_ip
bottlenecks_download_packages