diff options
| author | Christian Hopps <chopps@labn.net> | 2022-03-07 14:29:19 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2022-03-14 11:14:12 -0400 |
| commit | c451c0296c56c02be646295d46e492b33725824f (patch) | |
| tree | a83a74298b2e0638c91ffd80111977205548d670 /tests/lib/test_grpc.py | |
| parent | db0a45d0d6469a94ef9bd53de7f84b7f0e9e2c9b (diff) | |
tests: lib: fix grpc unit-test
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/lib/test_grpc.py')
| -rw-r--r-- | tests/lib/test_grpc.py | 10 |
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) |
