[Reproducible-commits] [debbindiff] 02/04: Swallow stderr for readelf and objdump

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Mar 28 14:52:28 UTC 2015


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

lunar pushed a commit to branch master
in repository debbindiff.

commit dfc7acceaac4be44ad5d143a81975d5ac6048c6c
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Mar 28 14:12:17 2015 +0100

    Swallow stderr for readelf and objdump
---
 debbindiff/comparators/elf.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debbindiff/comparators/elf.py b/debbindiff/comparators/elf.py
index 911c515..497ecde 100644
--- a/debbindiff/comparators/elf.py
+++ b/debbindiff/comparators/elf.py
@@ -29,7 +29,7 @@ from debbindiff.difference import Difference
 def readelf_all(path):
     output = subprocess.check_output(
         ['readelf', '--all', path],
-        shell=False).decode('ascii')
+        shell=False, stderr=subprocess.PIPE).decode('ascii')
     # the full path can appear in the output, we need to remove it
     return re.sub(re.escape(path), os.path.basename(path), output)
 
@@ -38,7 +38,7 @@ def readelf_all(path):
 def readelf_debug_dump(path):
     output = subprocess.check_output(
         ['readelf', '--debug-dump', path],
-        shell=False).decode('ascii')
+        shell=False, stderr=subprocess.PIPE).decode('ascii')
     # the full path can appear in the output, we need to remove it
     return re.sub(re.escape(path), os.path.basename(path), output)
 
@@ -47,7 +47,7 @@ def readelf_debug_dump(path):
 def objdump_disassemble(path):
     output = subprocess.check_output(
         ['objdump', '--disassemble', '--full-contents', path],
-        shell=False)
+        shell=False, stderr=subprocess.PIPE)
     # the full path appears in the output, we need to remove it
     return re.sub(re.escape(path), os.path.basename(path), output).decode('ascii')
 

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



More information about the Reproducible-commits mailing list