[sagemath] 01/01: - fix test retry logic: cd back to $(CURDIR) after running tests

Ximin Luo infinity0 at debian.org
Fri Aug 11 08:03:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagemath.

commit 07e29ae19253aa7d923ed6a9398a151af8ac87c4
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Aug 11 10:03:07 2017 +0200

    - fix test retry logic: cd back to $(CURDIR) after running tests
---
 debian/rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index d807bac..21edbc0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -102,12 +102,13 @@ run_tests = \
 # i386 seems to have issues running parallel tests - TODO: investigate this in more detail
 check_test_log = debian/rules -s LOGFILE=sage/logs/ptestlong-$(1).log
 run_tests_with_retry = \
-	$(run_tests); \
+	$(run_tests); cd "$(CURDIR)" && \
 	if $(is_prerelease); then :; \
 	elif check_test_log had-few-failures; then :; else \
 	  check_test_log had-not-too-many-failures && \
 	  mv sage/logs/ptestlong-$(1).log sage/logs/ptestlong-$(1).log.1 && \
-	  { $(run_tests) -p 1 -f; cd "$(CURDIR)" && check_test_log had-few-failures; }; \
+	  { $(run_tests) -p 1 -f; cd "$(CURDIR)" && \
+	  check_test_log had-few-failures; }; \
 	fi
 
 override_dh_auto_test-arch:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list