This fixes the neutron.tests.unit.sriovnicagent.test_eswitch_manager
.TestEmbSwitch.test_get_pci_list unit test that breaks with a
randomized PYTHONHASHSEED (see the bug report).
The test assumed that the pci slot list was sorted, so sort
the result before comparing.
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.
Reviewed: https:/ /review. openstack. org/111835 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b0f68bb1453 1b74f54cad61064 91ff75b0e8a1d8
Committed: https:/
Submitter: Jenkins
Branch: master
commit b0f68bb14531b74 f54cad6106491ff 75b0e8a1d8
Author: Pritesh Kothari <email address hidden>
Date: Mon Aug 4 14:14:20 2014 -0700
Do not assume order of pci slot list
This fixes the neutron. tests.unit. sriovnicagent. test_eswitch_ manager tch.test_ get_pci_ list unit test that breaks with a
.TestEmbSwi
randomized PYTHONHASHSEED (see the bug report).
The test assumed that the pci slot list was sorted, so sort
the result before comparing.
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: Ia2d879cc1251fb 9cf9b653a41064e 902b30005af
Partial-bug: #1348818