]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not assume order of lvm.tun_ofports set elements
authorBradley Jones <jones.bradley@me.com>
Tue, 5 Aug 2014 16:55:44 +0000 (17:55 +0100)
committerBradley Jones <jones.bradley@me.com>
Wed, 8 Oct 2014 13:59:26 +0000 (14:59 +0100)
commit8fac816e407dd87d4c940d2a0c873f78933b8cdc
tree90e5145f7510263bbab664960d553b5177491ee4
parent63e2efb14fc903af8e5c3cd76947aa53c10bad06
Do not assume order of lvm.tun_ofports set elements

This fixes the test_fdb_add_flows unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).

The test assumed that the lvm.tun_ofports set had
elements in a particular order. Found with PYTHONHASHSEED=2455351445 and
1595538922.

The fix sorts the actions output string so that it is always sorted when the
outputs are compared.

Partial-bug: #1348818

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Change-Id: I86b453a93f3ba09212709caf462cf3bfc5b21ee9
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py