From b18129c73c3081ace4031e5c66b27df328dd878d Mon Sep 17 00:00:00 2001
From: Jaesang Lee <jaesang_lee@sk.com>
Date: Thu, 5 Jul 2018 04:58:24 +0000
Subject: [PATCH] Add sla check in rally task

The current rally job is always execute report command at the end,
and it always succeeds regardless of the rally task result.
Since the values.yaml in the rally chart already includes sla check,
you should execute sla-check command at the end of the job
so that you can check whether the test has passed or not.

Change-Id: I4c91950b86622b1211aea3e9e908cb04711c0e76
---
 rally/templates/bin/_run-task.sh.tpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rally/templates/bin/_run-task.sh.tpl b/rally/templates/bin/_run-task.sh.tpl
index 9e3ee6a2ac..340c780565 100644
--- a/rally/templates/bin/_run-task.sh.tpl
+++ b/rally/templates/bin/_run-task.sh.tpl
@@ -29,6 +29,7 @@ function run_rally () {
   rally task start /tasks/rally/${CURRENT_TEST}.yaml
   rally task list
   rally task report --out /var/lib/rally/data/${CURRENT_TEST}.html
+  rally task sla-check
 
 }