diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2023-11-28 12:44:13 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-12-14 10:57:29 +0100 |
| commit | 9589fb300d1a58059347b4565fb85a070c689b70 (patch) | |
| tree | 0dbcaf2600c175527bbe1f4362e40fcf5eab3870 /tests/topotests/lib/topogen.py | |
| parent | 92c1a102e41c26cd6adcdcb6cd266da3a22b79d1 (diff) | |
topotests: look for python3 exabgp
Look for python3 exabgp instead of python2.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'tests/topotests/lib/topogen.py')
| -rw-r--r-- | tests/topotests/lib/topogen.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
