aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.d/cirrus
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-07-25 15:05:09 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-07-29 09:48:01 +0100
commit998f3347223234eeb2f47235eaa222cf0ee7f8ca (patch)
treedabfc33afea09cfc778ee27fbba1af18b5d7ecce /.gitlab-ci.d/cirrus
parentfeb6cb936906ad049bdc77ef176b1d402e341c29 (diff)
gitlab: show testlog.txt contents when cirrus/custom-runner jobs fail
When tests fail meson just displays a summary and tells you to look at the testlog.txt file for details. The native jobs on shared runners publish testlog.txt as an artifact. For the Cirrus jobs and custom runner jobs this is not currently possible. The best we can do is cat the log contents on failure, to give maintainers a fighting chance of diagnosing the problem. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220722130431.2319019-3-berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220725140520.515340-3-alex.bennee@linaro.org>
Diffstat (limited to '.gitlab-ci.d/cirrus')
-rw-r--r--.gitlab-ci.d/cirrus/build.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml
index c555f5d36e..7ef6af8d33 100644
--- a/.gitlab-ci.d/cirrus/build.yml
+++ b/.gitlab-ci.d/cirrus/build.yml
@@ -32,5 +32,6 @@ build_task:
- $MAKE -j$(sysctl -n hw.ncpu)
- for TARGET in $TEST_TARGETS ;
do
- $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 ;
+ $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1
+ || { cat meson-logs/testlog.txt; exit 1; } ;
done