Fix the conflict in yardstick.conf between API and CI 31/24831/2
authorchenjiankun <chenjiankun1@huawei.com>
Thu, 24 Nov 2016 07:07:07 +0000 (07:07 +0000)
committerJack Chan <chenjiankun1@huawei.com>
Thu, 24 Nov 2016 07:21:52 +0000 (07:21 +0000)
JIRA: YARDSTICK-421

In the Docker image, the default dispatcher value in yardstick.conf is local influxDB.
But the CI will set another.
It will cause a conflict.
So I '>' to cover yardstick.conf file.

Change-Id: I7088682e952ee7bb84f6872a49a24296d676a9cb
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
api/api-prepare.sh
tests/ci/yardstick-verify

index 712ad83..075d787 100755 (executable)
@@ -9,7 +9,7 @@ if [[ ! -e "${output_config}" ]];then
 
     install -d /etc/yardstick -m 0755 -o root
 
-    cat << EOF >> "${output_config}"
+    cat << EOF > "${output_config}"
 [DEFAULT]
 debug = True
 dispatcher = influxdb
index 2b7ec9d..1a6682f 100755 (executable)
@@ -160,7 +160,7 @@ run_test()
 
     mkdir -p /etc/yardstick
 
-    cat << EOF >> /etc/yardstick/yardstick.conf
+    cat << EOF > /etc/yardstick/yardstick.conf
 [DEFAULT]
 debug = True
 dispatcher = ${DISPATCHER_TYPE}