cypress_test/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) New commits: commit b394c5a8f715931ad938e967b5049c99b52d402d Author: Tamás Zolnai <tamas.zol...@collabora.com> AuthorDate: Thu Apr 9 16:05:41 2020 +0200 Commit: Tamás Zolnai <tamas.zol...@collabora.com> CommitDate: Tue Apr 14 11:38:44 2020 +0200
cypress: introduce a second chance for the tests to pass. In parallel build try to run the specific test files for a second time if they fail. Let's be realist, testing an online application always has some unreliabilities, let's make things more reliable with running test more times and abort the build only if the test fails consistently. This is enabled only for parallel builds now, so we have it on Jenkins. A simple make check will be more deterministic. I also added an option to disable second chance for parallel build: see CYPRESS_NO_SECOND_CHANCE make file variable. Change-Id: Ib7c554a238ded7ee15908b9f0c2d2c92ef0dcf32 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91987 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> diff --git a/cypress_test/Makefile.am b/cypress_test/Makefile.am index 8e137be2c..40f53c10b 100644 --- a/cypress_test/Makefile.am +++ b/cypress_test/Makefile.am @@ -209,6 +209,13 @@ define execute_run_parallel echo "`echo $(1) && $(1)`" > $(2) 2>&1 && \ if [ -z `grep -o -m 1 "Error:" $(2)` ];\ then cat $(2);\ + elif [ -z $(CYPRESS_NO_SECOND_CHANCE) ]; \ + then echo "Second chance!" > $(2) && \ + echo "`echo $(1) && $(1)`" >> $(2) 2>&1 && \ + if [ -z `grep -o -m 1 "Error:" $(2)` ];\ + then cat $(2);\ + else cat $(2) >> $(ERROR_LOG); \ + fi;\ else cat $(2) >> $(ERROR_LOG);\ fi; endef _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits