From: Louis Scalbert Date: Tue, 28 Nov 2023 11:44:13 +0000 (+0100) Subject: topotests: look for python3 exabgp X-Git-Tag: base_10.0~188^2~17 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9589fb300d1a58059347b4565fb85a070c689b70;p=mirror%2Ffrr.git topotests: look for python3 exabgp Look for python3 exabgp instead of python2. Signed-off-by: Louis Scalbert --- diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index c77a987117..f58a6668b6 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -102,14 +102,14 @@ def get_exabgp_cmd(commander=None): exacmd = commander.get_exec_path("exabgp") if exacmd and exacmd_version_ok(exacmd): return exacmd - py2_path = commander.get_exec_path("python2") - if py2_path: - exacmd = py2_path + " -m exabgp" + py3_path = commander.get_exec_path("python3") + if py3_path: + exacmd = py3_path + " -m exabgp" if exacmd_version_ok(exacmd): return exacmd - py2_path = commander.get_exec_path("python") - if py2_path: - exacmd = py2_path + " -m exabgp" + py3_path = commander.get_exec_path("python") + if py3_path: + exacmd = py3_path + " -m exabgp" if exacmd_version_ok(exacmd): return exacmd return None