[ovirt-devel] [VDSM] Tests failing because of ordering dependencies

Nir Soffer nsoffer at redhat.com
Wed Oct 12 20:18:08 UTC 2016


On Wed, Oct 12, 2016 at 9:14 PM, Nir Soffer <nsoffer at redhat.com> wrote:
> Trying to run vdsm tests via tox (so correct nose is used automatically),
> some of the tests fail.
>
> The failure are all about ordering expectations, which look wrong.

tox -e tests
tests create: /vdsm/.tox/tests
tests installdeps: nose==1.3.7
tests installed: nose==1.3.7
tests runtests: PYTHONHASHSEED='1382456816'

tox uses random seed on each run, exposing bad code assuming order
of unordered things.

To repeat tests failures, you probably want to use the same seed,
this can be done like this:

    tox -e tests --hashseed SEED

See https://docs.python.org/2/using/cmdline.html#envvar-PYTHONHASHSEED

Nir



More information about the Devel mailing list