[reprotest] 01/05: Flush so subprocess output is guaranteed to appear later

Ximin Luo infinity0 at debian.org
Fri Sep 23 18:32:50 UTC 2016


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit c1b17eda8bb62aa37919c4093b83f1801e2b303b
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Sep 23 19:15:25 2016 +0200

    Flush so subprocess output is guaranteed to appear later
    
    Also rm bogus PATH addition, added by accident
---
 debian/rules          | 2 +-
 reprotest/__init__.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 729f6f2..d749070 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,5 +10,5 @@ override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 # FIXME: The patch from #838663 is also required for this to work on pbuilder
 	TOX_TESTENV_PASSENV=PYTHONIOENCODING PYTHONIOENCODING=utf-8 \
-	REPROTEST_TEST_SERVERS=null PATH=$$PWD/debian:$$PATH tox -r --sitepackages -- -s
+	REPROTEST_TEST_SERVERS=null tox -r --sitepackages -- -s
 endif
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index b9df375..f973e8a 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -365,7 +365,7 @@ def check(build_command, artifact_pattern, virtual_server_args, source_root,
             print("=======================")
             print("Reproduction successful")
             print("=======================")
-            print("No differences in %s" % artifact_pattern)
+            print("No differences in %s" % artifact_pattern, flush=True)
             subprocess.call(['find', '.', '-type', 'f', '-exec', 'sha256sum', '{}', ';'], cwd=result.control)
         else:
             # a slight hack, to trigger no_clean_on_error

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git



More information about the Reproducible-commits mailing list