From d34f613477e9257c6eef12b3d8f2d5a1dcd2a097 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 13 Sep 2017 12:07:35 -0300 Subject: [PATCH] topogen: save zebra version output Keep the zebra version output for later problem diagnostics. --- tests/topotests/lib/topogen.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index e39803420b..eda4e3128b 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -955,6 +955,13 @@ def diagnose_env(): logger.warning('could not find {} in {}'.format(fname, frrdir)) ret = False + else: + if fname != 'zebra': + continue + + os.system( + '{} -v 2>&1 >/tmp/topotests/frr_zebra.txt'.format(path) + ) # Assert that Quagga utilities exist quaggadir = config.get('topogen', 'quaggadir') @@ -987,6 +994,13 @@ def diagnose_env(): if not os.path.isfile(path): logger.warning('could not find {} in {}'.format(fname, quaggadir)) ret = False + else: + if fname != 'zebra': + continue + + os.system( + '{} -v 2>&1 >/tmp/topotests/quagga_zebra.txt'.format(path) + ) if not os.path.isdir('/tmp'): logger.warning('could not find /tmp for logs') -- 2.39.5