tests: Fix select group test on big-endian systems.
authorBen Pfaff <blp@ovn.org>
Thu, 26 May 2016 23:57:00 +0000 (16:57 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 3 Jun 2016 20:18:25 +0000 (13:18 -0700)
commit3a6e67fa5267eed92e351b8da2eb68d0ba71df41
tree124e5bd55dce79f458ef2e2145358d0ac1809ddd
parenta28239c009bcb3389c036e4ebafe7c2dc3502c7f
tests: Fix select group test on big-endian systems.

This test ensures that, when the selection criteria for a select group are
the same from packet to packet, the same bucket is always selected.
However, it hardcoded the bucket that was selected to the one that happens
to be selected with the current OVS hash function on little-endian systems.
On big-endian systems, the current OVS hash functions turns out to select
the other bucket.  That's fine (it's consistent, it just consistently makes
the other choice), so this commit fixes the problem by allowing either
bucket to be selected.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Gerhard Stenzel <gstenzel@linux.vnet.ibm.com>
tests/ofproto-dpif.at