]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Ignore YANG stderr messages in test_all_protocol_startup test
authorMartin Winter <mwinter@opensourcerouting.org>
Fri, 27 Nov 2020 02:20:16 +0000 (03:20 +0100)
committerMartin Winter <mwinter@opensourcerouting.org>
Fri, 27 Nov 2020 18:45:15 +0000 (19:45 +0100)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
tests/topotests/all-protocol-startup/test_all_protocol_startup.py

index 96b88914a743acb61c18451e5f8b3eb8122945d1..84bae74f6de65b5734724cb983d064f4fa37d761 100644 (file)
@@ -269,6 +269,9 @@ def test_error_messages_daemons():
                 error_logs += log
 
         log = net["r1"].getStdErr("nhrpd")
+        # NHRPD shows YANG model not embedded messages
+        # Ignore these
+        log = re.sub(r".*YANG model.*not embedded.*", "", log).rstrip()
         if log:
             error_logs += "r%s NHRPd StdErr Output:\n" % i
             error_logs += log
@@ -285,7 +288,7 @@ def test_error_messages_daemons():
 
         log = net["r%s" % i].getStdErr("zebra")
         if log:
-            error_logs += "r%s Zebra StdErr Output:\n"
+            error_logs += "r%s Zebra StdErr Output:\n" % i
             error_logs += log
 
     if error_logs: