diff options
author | Quentin Young <qlyoung@nvidia.com> | 2022-03-29 22:16:35 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@nvidia.com> | 2022-03-29 22:16:35 +0200 |
commit | 9d3a0212621e6c2f41c19223843f66473299f3eb (patch) | |
tree | 11f65d0ef063a17a2aeace81e479f1d4ae99f772 /tests/lib | |
parent | Merge pull request #10838 from ton31337/feature/bgpd_callbacks_for_start_end_... (diff) | |
download | frr-9d3a0212621e6c2f41c19223843f66473299f3eb.tar.xz frr-9d3a0212621e6c2f41c19223843f66473299f3eb.zip |
tests: skip grpc test if frr not installed
it wants yang models installed which will only be there if frr has been
installed before, causing `make check` to fail when run on a system on
which frr has not been installed when GRPC is enabled (--enable-grpc)
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_grpc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/test_grpc.py b/tests/lib/test_grpc.py index 2e292fadc..7f722de42 100644 --- a/tests/lib/test_grpc.py +++ b/tests/lib/test_grpc.py @@ -13,6 +13,10 @@ class TestGRPC(object): 'S["GRPC_TRUE"]=""\n' not in open("../config.status").readlines(), reason="GRPC not enabled", ) + @pytest.mark.skipif( + not os.path.isdir("/usr/share/yang"), + reason="YANG models aren't installed in /usr/share/yang", + ) def test_exits_cleanly(self): basedir = os.path.dirname(inspect.getsourcefile(type(self))) program = os.path.join(basedir, self.program) |