summaryrefslogtreecommitdiffstats
path: root/tests/functest_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functest_run.sh')
-rwxr-xr-xtests/functest_run.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/functest_run.sh b/tests/functest_run.sh
index f741912..f72dd09 100755
--- a/tests/functest_run.sh
+++ b/tests/functest_run.sh
@@ -8,7 +8,8 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-[[ "${CI_DEBUG:-true}" == "true" ]] && set -x
+PARSER_CI_DEBUG=${CI_DEBUG:-true}
+[[ "${PARSER_CI_DEBUG}" == "true" ]] && set -x
PARSER_IMAGE_URL_FILE=cirros-0.3.0-x86_64-disk.img
PARSER_IMAGE_URL=https://launchpad.net/cirros/trunk/0.3.0/+download/${PARSER_IMAGE_URL_FILE}
@@ -138,7 +139,7 @@ reset_parser_test() {
}
# 3). Delete hot tmp file ${VRNC_OUTPUT_TEMPLATE_FILE}
- [ -e ${VRNC_OUTPUT_TEMPLATE_FILE} -a ${CI_DEBUG} != "true" ] && {
+ [ -e ${VRNC_OUTPUT_TEMPLATE_FILE} -a ${PARSER_CI_DEBUG} != "true" ] && {
echo "delete hot temp file ${VRNC_OUTPUT_TEMPLATE_FILE} after test."
rm -fr ${VRNC_OUTPUT_TEMPLATE_FILE}
}
@@ -150,7 +151,7 @@ reset_parser_test() {
}
# 5). Delete tmp image ${PARSER_IMAGE_URL_FILE}
- [ -e ${PARSER_IMAGE_URL_FILE} -a ${CI_DEBUG} != "true" ] && {
+ [ -e ${PARSER_IMAGE_URL_FILE} -a ${PARSER_CI_DEBUG} != "true" ] && {
echo "delete local URL image file ${PARSER_IMAGE_URL_FILE} after test."
rm -fr ${PARSER_IMAGE_URL_FILE}
}
@@ -184,6 +185,9 @@ echo "======================= Parser functest begin =========================="
trap reset_parser_test EXIT
+# start syslog for loghander
+service rsyslog restart
+
echo " ========= 1/4. Preparing VM image for parser... ========= "
download_parser_image
register_parser_image