summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-11 14:58:30 +0200
committerGitHub <noreply@github.com>2021-07-11 14:58:30 +0200
commit816ae445c011d1105141cfbf20487682a4bd7913 (patch)
treed1b5edcb381a7607b903367586400801f435ceeb /smoketest
parent3bfaed07d3353583b981a5af0f656c03b537f28f (diff)
downloadvyos-1x-816ae445c011d1105141cfbf20487682a4bd7913.tar.gz
vyos-1x-816ae445c011d1105141cfbf20487682a4bd7913.zip
smoketest: ospf: change passive-interface debugging
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_ospf.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/smoketest/scripts/cli/test_protocols_ospf.py b/smoketest/scripts/cli/test_protocols_ospf.py
index 23e5f2678..9ed912b54 100755
--- a/smoketest/scripts/cli/test_protocols_ospf.py
+++ b/smoketest/scripts/cli/test_protocols_ospf.py
@@ -202,11 +202,9 @@ class TestProtocolsOSPF(VyOSUnitTestSHIM.TestCase):
for interface in interfaces:
self.assertIn(f' no passive-interface {interface}', frrconfig) # default
except:
- tmp = cmd('tail -n 250 /var/log/messages')
- print(tmp)
- tmp = cmd('vtysh -c "show run"')
- print(tmp)
- self.fail('Now we can hopefully see why OSPF fails')
+ tmp1 = cmd('tail -n 250 /var/log/messages')
+ tmp2 = cmd('vtysh -c "show run"')
+ self.fail(f'Now we can hopefully see why OSPF fails:\n{tmp1}\n\n{tmp2}')
def test_ospf_08_redistribute(self):
metric = '15'