qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kp...@apache.org
Subject qpid-interop-test git commit: QPIDIT-113: Workaround which ignores spurious error message from AMQP.NetLite on stderr
Date Wed, 28 Feb 2018 17:48:57 GMT
Repository: qpid-interop-test
Updated Branches:
  refs/heads/master 601940ab0 -> f92c5ad47


QPIDIT-113: Workaround which ignores spurious error message from AMQP.NetLite on stderr


Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/f92c5ad4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/f92c5ad4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/f92c5ad4

Branch: refs/heads/master
Commit: f92c5ad4758e8e290783a7c1f070524c94384a91
Parents: 601940a
Author: Kim van der Riet <kvdr@localhost.localdomain>
Authored: Wed Feb 28 12:48:36 2018 -0500
Committer: Kim van der Riet <kvdr@localhost.localdomain>
Committed: Wed Feb 28 12:48:36 2018 -0500

----------------------------------------------------------------------
 src/python/qpid_interop_test/shims.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/f92c5ad4/src/python/qpid_interop_test/shims.py
----------------------------------------------------------------------
diff --git a/src/python/qpid_interop_test/shims.py b/src/python/qpid_interop_test/shims.py
index 0d369bb..c5cc9e3 100644
--- a/src/python/qpid_interop_test/shims.py
+++ b/src/python/qpid_interop_test/shims.py
@@ -50,7 +50,10 @@ class ShimProcess(subprocess.Popen):
             if self.killed_flag:
                 raise InteropTestTimeout('%s: Timeout after %d seconds' % (self.proc_name,
timeout))
             if stderrdata: # length > 0
-                return stderrdata # ERROR: return single string
+                # Workaround for Amqp.NetLite which on some OSs produces a spurious error
message on stderr
+                # which should be ignored:
+                if not stderrdata.startswith('Got a bad hardware address length for an AF_PACKET'):
+                    return stderrdata # ERROR: return stderr string
             if not stdoutdata: # zero length
                 return None
             type_value_list = stdoutdata.split('\n')[0:-1] # remove trailing '\n', split
by only remaining '\n'


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message