Comment 32 for bug 1348818

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/111835
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b0f68bb14531b74f54cad6106491ff75b0e8a1d8
Submitter: Jenkins
Branch: master

commit b0f68bb14531b74f54cad6106491ff75b0e8a1d8
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
    .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