[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/10] gitlab-ci: Display Avocado log content when tests timeout
From: |
Thomas Huth |
Subject: |
[PULL 05/10] gitlab-ci: Display Avocado log content when tests timeout |
Date: |
Fri, 19 Feb 2021 08:57:33 +0100 |
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>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210215171438.935665-1-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 870d5f83f5..fcbec77a91 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 ;
--
2.27.0
- [PULL 00/10] gitlab and qtest patches, Thomas Huth, 2021/02/19
- [PULL 01/10] tests/qtest/boot-serial-test: Test Virt machine with 'max', Thomas Huth, 2021/02/19
- [PULL 02/10] gitlab: always build container images, Thomas Huth, 2021/02/19
- [PULL 03/10] gitlab: add fine grained job deps for all build jobs, Thomas Huth, 2021/02/19
- [PULL 04/10] gitlab: fix inconsistent indentation, Thomas Huth, 2021/02/19
- [PULL 05/10] gitlab-ci: Display Avocado log content when tests timeout,
Thomas Huth <=
- [PULL 08/10] tests/qtest/boot-sector: Check that the guest did not panic, Thomas Huth, 2021/02/19
- [PULL 06/10] scripts/checkpatch: Improve the check for authors mangled by the mailing list, Thomas Huth, 2021/02/19
- [PULL 10/10] travis.yml: Limit simultaneous jobs to 3, Thomas Huth, 2021/02/19
- [PULL 09/10] gitlab-ci.yml: Run check-tcg with TCI, Thomas Huth, 2021/02/19
- [PULL 07/10] gitlab-ci: Disable vhost-kernel in build-disable job, Thomas Huth, 2021/02/19
- Re: [PULL 00/10] gitlab and qtest patches, Peter Maydell, 2021/02/19