diff options
| author | Christian Hopps <chopps@labn.net> | 2022-04-02 05:22:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-02 05:22:53 -0400 |
| commit | 9a33889d89aef9493949e4fe9d3718fb4efd9b0c (patch) | |
| tree | 9a05ae44bf4cc6f3fce309093e489969b92cc159 | |
| parent | 97a1fdf20f8a19c5c4cc321e9fe223b45a871b9f (diff) | |
| parent | 9d3a0212621e6c2f41c19223843f66473299f3eb (diff) | |
Merge pull request #10925 from qlyoung/fix-grpc-wants-installed-frr
tests: skip grpc test if frr not installed
| -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 2e292fadc9..7f722de422 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) |
