summaryrefslogtreecommitdiff
path: root/tests/lib/test_grpc.py
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-03-14 14:57:59 -0400
committerGitHub <noreply@github.com>2022-03-14 14:57:59 -0400
commit341e1d6e0a1f6524197142e679929bcd52385978 (patch)
tree69743a2a74924b2a4a0e3c0ce3b729d9a6f01172 /tests/lib/test_grpc.py
parent7a382e16e687b3869f5b395c607df52163efe7a8 (diff)
parentd3074a5207e2e4a5c7e669eb69f22dfd91b92c47 (diff)
Merge pull request #10738 from LabNConsulting/chopps/fixgrpc
fixes for grpc module
Diffstat (limited to 'tests/lib/test_grpc.py')
-rw-r--r--tests/lib/test_grpc.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/test_grpc.py b/tests/lib/test_grpc.py
index 06ae6c05dd..2e292fadc9 100644
--- a/tests/lib/test_grpc.py
+++ b/tests/lib/test_grpc.py
@@ -1,8 +1,10 @@
import inspect
import os
import subprocess
-import pytest
+
import frrtest
+import pytest
+
class TestGRPC(object):
program = "./test_grpc"
@@ -15,9 +17,13 @@ class TestGRPC(object):
basedir = os.path.dirname(inspect.getsourcefile(type(self)))
program = os.path.join(basedir, self.program)
proc = subprocess.Popen(
- [frrtest.binpath(program)], stdin=subprocess.PIPE, stdout=subprocess.PIPE
+ [frrtest.binpath(program)],
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT,
)
output, _ = proc.communicate()
self.exitcode = proc.wait()
if self.exitcode != 0:
+ print("OUTPUT:\n" + output.decode("ascii"))
raise frrtest.TestExitNonzero(self)