diff mbox series

[v1,2/6] gitlab-ci: Display Avocado log content when tests timeout

Message ID 20210217121932.19986-3-alex.bennee@linaro.org
State New
Headers show
Series my current testing/next queue (meson/gitlab/fedora bump) | expand

Commit Message

Alex Bennée Feb. 17, 2021, 12:19 p.m. UTC
From: Philippe Mathieu-Daudé <philmd@redhat.com>


Since commit ba2232bae6d ("gitlab-ci: Refactor code that show logs
of failed acceptances") we display the log content of failing tests
(Avocado "FAIL" event).

Since we are also interested in tests timeouting, update our global
Avocado config to display log content for the "INTERRUPT" event,
"possible when the timeout is reached" (See [*]).

[*] https://avocado-framework.readthedocs.io/en/latest/guides/writer/chapters/writing.html#test-statuses

Suggested-by: Willian Rampazzo <willianr@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Message-Id: <20210215171438.935665-1-philmd@redhat.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

Comments

Thomas Huth Feb. 17, 2021, 1:38 p.m. UTC | #1
On 17/02/2021 13.19, Alex Bennée wrote:
> From: Philippe Mathieu-Daudé <philmd@redhat.com>

> 

> Since commit ba2232bae6d ("gitlab-ci: Refactor code that show logs

> of failed acceptances") we display the log content of failing tests

> (Avocado "FAIL" event).

> 

> Since we are also interested in tests timeouting, update our global

> Avocado config to display log content for the "INTERRUPT" event,

> "possible when the timeout is reached" (See [*]).

> 

> [*] https://avocado-framework.readthedocs.io/en/latest/guides/writer/chapters/writing.html#test-statuses

> 

> Suggested-by: Willian Rampazzo <willianr@redhat.com>

> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

> Message-Id: <20210215171438.935665-1-philmd@redhat.com>

> ---

>   .gitlab-ci.yml | 2 +-

>   1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml

> index 7adb9a4cef..234cead60c 100644

> --- a/.gitlab-ci.yml

> +++ b/.gitlab-ci.yml

> @@ -64,7 +64,7 @@ include:

>       - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf

>       - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"

>              >> ~/.config/avocado/avocado.conf

> -    - echo -e '[job.output.testlogs]\nstatuses = ["FAIL"]'

> +    - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'

>              >> ~/.config/avocado/avocado.conf

>       - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then

>           du -chs ${CI_PROJECT_DIR}/avocado-cache ;

> 


Acked-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7adb9a4cef..234cead60c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -64,7 +64,7 @@  include:
     - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf
     - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']"
            >> ~/.config/avocado/avocado.conf
-    - echo -e '[job.output.testlogs]\nstatuses = ["FAIL"]'
+    - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]'
            >> ~/.config/avocado/avocado.conf
     - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then
         du -chs ${CI_PROJECT_DIR}/avocado-cache ;