You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2020/01/08 22:42:00 UTC

[couchdb] 01/01: Remove EUnit retries on failure

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch remove-eunit-retries-on-failure
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 595c701c6c5b91520216ec89fb43dd021fb27fc2
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Wed Jan 8 17:38:59 2020 -0500

    Remove EUnit retries on failure
    
    Since we switched from Travis to Jenkins, let's see how tests run without
    retries in the new environment.
    
    For reference, retries were introduced in: https://github.com/apache/couchdb/commit/220462a1dd2d921fc4ecba3488f5fedefb75217f
---
 Makefile | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index 9ab9b1b..96fc4ac 100644
--- a/Makefile
+++ b/Makefile
@@ -173,16 +173,7 @@ eunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1
 eunit: couch
 	@COUCHDB_VERSION=$(COUCHDB_VERSION) COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) $(REBAR) setup_eunit 2> /dev/null
 	@for dir in $(subdirs); do \
-            tries=0; \
-            while true; do \
-                COUCHDB_VERSION=$(COUCHDB_VERSION) COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) $(REBAR) -r eunit $(EUNIT_OPTS) apps=$$dir ; \
-                if [ $$? -eq 0 ]; then \
-                    break; \
-                else \
-                    tries=$$((tries+1)); \
-                    [ $$tries -gt 2 ] && exit 1; \
-                fi \
-            done \
+            COUCHDB_VERSION=$(COUCHDB_VERSION) COUCHDB_GIT_SHA=$(COUCHDB_GIT_SHA) $(REBAR) -r eunit $(EUNIT_OPTS) apps=$$dir || exit 1; \
         done