]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not assume order of pci slot list
authorPritesh Kothari <pritesh.kothari@cisco.com>
Mon, 4 Aug 2014 21:14:20 +0000 (14:14 -0700)
committerpritesh <pritesh.kothari@cisco.com>
Thu, 7 Aug 2014 16:41:57 +0000 (16:41 +0000)
commitb0f68bb14531b74f54cad6106491ff75b0e8a1d8
tree2fa1c92bcdfe5804cc3d06b2de168479bb43afcf
parentcada146fe3862c0a7001e4e1a115e54845ce97cd
Do not assume order of pci slot list

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.

Change-Id: Ia2d879cc1251fb9cf9b653a41064e902b30005af
Partial-bug: #1348818
neutron/tests/unit/sriovnicagent/test_eswitch_manager.py