]> git.proxmox.com Git - mirror_frr.git/commit
topotest: fix a regression in version_cmp
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Tue, 7 Nov 2017 23:17:15 +0000 (21:17 -0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
commit034237db1254da359f13933b5beab16b15b65838
tree4eb394accc48206d755ed902f5dc9ece8a1638e8
parenta018893f7ca58590bfdd6f1de65abaebcb3838b9
topotest: fix a regression in version_cmp

It was found a regression on an edge case when the second number in the
comparison was (at least) 2 numbers longer the comparison would fail
with a wrong return value. It succeeded for some cases because the
first comparison in the exception was correct, but not the second.
tests/topotests/lib/test/test_version.py [changed mode: 0644->0755]
tests/topotests/lib/topotest.py