]> git.puffer.fish Git - mirror/frr.git/commitdiff
topogen: import pytest assert function
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 22 Dec 2017 12:47:20 +0000 (10:47 -0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:13 +0000 (20:22 -0500)
Use the pytest assert function to be able to report to pytest failures
that happened inside the API.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
tests/topotests/lib/topogen.py

index 2ea05c9742b42752a75b8e59a1b2f8f7491fa264..116dd9a41e6bc2c1f1e9aff067e820216b0c132f 100644 (file)
@@ -48,6 +48,7 @@ import grp
 import platform
 import pwd
 import subprocess
+import pytest
 
 from mininet.net import Mininet
 from mininet.log import setLogLevel