Commit 5d9905f4 authored by Konstantinos Tsakalozos's avatar Konstantinos Tsakalozos Committed by George Kraft

Fail test action when test suite fails. Minor README update.

parent d3428ef3
...@@ -73,7 +73,7 @@ a deployed cluster. The following example will skip the `Flaky`, `Slow`, and ...@@ -73,7 +73,7 @@ a deployed cluster. The following example will skip the `Flaky`, `Slow`, and
`Feature` labeled tests: `Feature` labeled tests:
```shell ```shell
juju run-action kubernetes-e2e/0 skip='\[(Flaky|Slow|Feature:.*)\]' juju run-action kubernetes-e2e/0 test skip='\[(Flaky|Slow|Feature:.*)\]'
``` ```
> Note: the escaping of the regex due to how bash handles brackets. > Note: the escaping of the regex due to how bash handles brackets.
......
...@@ -45,3 +45,7 @@ tar -czf $ACTION_LOG_TGZ ${JUJU_ACTION_UUID}.log ...@@ -45,3 +45,7 @@ tar -czf $ACTION_LOG_TGZ ${JUJU_ACTION_UUID}.log
action-set log="$ACTION_LOG_TGZ" action-set log="$ACTION_LOG_TGZ"
action-set junit="$ACTION_JUNIT_TGZ" action-set junit="$ACTION_JUNIT_TGZ"
if tail ${JUJU_ACTION_UUID}.log | grep -q "Test Suite Failed"; then
action-fail "Failure detected in the logs"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment