summaryrefslogtreecommitdiffstats
path: root/common.sh
diff options
context:
space:
mode:
authoryuyang <Gabriel.yuyang@huawei.com>2017-05-22 10:23:55 +0800
committerYu Yang (Gabriel) <Gabriel.yuyang@huawei.com>2017-06-02 08:44:25 +0000
commitf403b2e211d65e5117a5fa03a6ae8c8f3a2e4df9 (patch)
tree784bbcbcf35b99958e1f55f699adeaccd729f41a /common.sh
parentfb9e1a726d3a598494fd38330848ef676219a47a (diff)
Add test name check function and cleanup
JIRA: BOTTLENECK-158 Add test case/story name check and cleanup environment option. Change-Id: I07609c089ca78b0d2760c09c0312d7d1106c815a Signed-off-by: yuyang <Gabriel.yuyang@huawei.com> (cherry picked from commit 95748aca5de2e906b0f555e7dbf3829e397d6415)
Diffstat (limited to 'common.sh')
-rwxr-xr-xcommon.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/common.sh b/common.sh
deleted file mode 100755
index 15cf2ecb..00000000
--- a/common.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-##############################################################################
-# Copyright (c) 2016 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
-##############################################################################
-
-mkdir -p /home/opnfv/bottlenecks/config
-config_file=/home/opnfv/bottlenecks/config/bottlenecks_cfg.yaml
-
-if [ ! -f ${config_file} ]; then
- default_config_file=$(find /home/opnfv -name bottlenecks_cfg.yaml)
- cp $default_config_file $config_file
- echo "bottlenecks_cfg.yaml not provided. Using default one"
-fi
-
-SUITE_PREFIX_CONFIG=$(cat $config_file | grep -w suite_prefix_config | awk 'END {print $NF}')
-
-info () {
- logger -s -t "bottlenecks.info" "$*"
-}
-
-error () {
- logger -s -t "bottlenecks.error" "$*"
- exit 1
-}