]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CI: Automatically retry failed unit test with verbose option
authorMaria Matejka <mq@ucw.cz>
Tue, 12 May 2026 21:02:04 +0000 (23:02 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 12 May 2026 21:41:06 +0000 (23:41 +0200)
To spare time, we want to get more data immediately from failed tests.

.gitlab-ci.yml
Makefile.in
gitlab/template.yml.j2

index 225193712df4955447311f6bce2fa05e9459a562..eef8a1f67883180db7ff515dd0de7f8b2d392c75 100644 (file)
@@ -874,7 +874,7 @@ docker-ubuntu-25.10-amd64:
     - MAKE=make
     - which gmake 2>/dev/null >/dev/null && MAKE=gmake
     - $MAKE VERBOSE=1
-    - $MAKE VERBOSE=1 check
+    - $MAKE VERBOSE=1 TEST_RETRY_VERBOSE=1 check
     # Build docs when tools are available
     - if which linuxdoc pdflatex sgmlsasp >/dev/null ; then $MAKE docs ; fi
     # Check that the reported version is the right one
index 2dbf966113e949b2b23c3c44678c2d05adc1c28e..52d5d15937e334a683d26bb786528ba1e08eb241 100644 (file)
@@ -181,7 +181,7 @@ $(tests_targets): %: %.o $(tests_objs) | prepare
 $(tests_targets): LIBS += $(DAEMON_LIBS)
 
 $(tests_targets_ok): %.ok: %
-       $(Q)$(if $(CROSSBUILD_ARCH),qemu-$(CROSSBUILD_ARCH) )$* 2>/dev/null && touch $*.ok
+       $(Q)$(if $(CROSSBUILD_ARCH),qemu-$(CROSSBUILD_ARCH) )$* 2>/dev/null && touch $*.ok $(if $(TEST_RETRY_VERBOSE), || ($(if $(CROSSBUILD_ARCH),qemu-$(CROSSBUILD_ARCH) )$* -ftv && false))
 
 test: testsclean check
 check: tests tests_run
index dfd1b9067eb3825503a133ea08ecfb2ae220b1b5..37048cf782809ba983ff713caca84c4b80140154 100644 (file)
@@ -339,7 +339,7 @@ docker-{{ docker["name"] }}:
     - MAKE=make
     - which gmake 2>/dev/null >/dev/null && MAKE=gmake
     - $MAKE VERBOSE=1
-    - $MAKE VERBOSE=1 check
+    - $MAKE VERBOSE=1 TEST_RETRY_VERBOSE=1 check
     # Build docs when tools are available
     - if which linuxdoc pdflatex sgmlsasp >/dev/null ; then $MAKE docs ; fi
     # Check that the reported version is the right one