summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-05-27 15:54:28 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-05-27 16:04:16 +0900
commitc4ae9cf6e1b1ff3c46699f596d22e60a8512e939 (patch)
tree9d7c9c40df4705ace3a059237eb3ddb2ce9196ff /tests/run.sh
parent24be63fc311ae57ca9de23e2c874632a60bdef6d (diff)
test: respect 'CI_DEBUG' set by functest
In current bash script for doctor test, '-x' option is enabled and all executing commands will be printed in the console. Functest has a configuration to enable/disable this '-x' option. It is environment variable 'CI_DEBUG'. This patch makes doctor test script to set '-x' option according to 'CI_DEBUG'. If it's not set, '-x' option will be enabled as it was enabled before this change. JIRA: FUNCTEST-212 Change-Id: I9fa5036aad7a0f5c88378337d946439a6ee6108c Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 00dcabca..241d6898 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -ex
+#!/bin/bash -e
##############################################################################
# Copyright (c) 2016 NEC Corporation and others.
#
@@ -8,6 +8,8 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+[[ "${CI_DEBUG:-true}" == "true" ]] && set -x
+
IMAGE_URL=https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
IMAGE_NAME=cirros
IMAGE_FILE="${IMAGE_NAME}.img"