[ovs-git] [openvswitch/ovs] 64eb96: tests: Deal with Python output differences.

GitHub noreply at github.com
Mon Feb 22 20:43:01 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 64eb96a9af0917a4c7b8e0441d2e49404fd247d5
      https://github.com/openvswitch/ovs/commit/64eb96a9af0917a4c7b8e0441d2e49404fd247d5
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/test-json.py
    M tests/test-ovsdb.py
    M tests/unixctl-py.at

  Log Message:
  -----------
  tests: Deal with Python output differences.

This test checks the output based on Python's string representation of
an array of two unicode strings.  These strings have a "u" prefix in
Python 2, but not Python 3.  In Python 3, all strings are unicode.

Use sed on the output to strip the "u" from Python 2 output when
checking for the expected result.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 8fb7d02686ed85ad799dfd902ea88d977dab1868
      https://github.com/openvswitch/ovs/commit/8fb7d02686ed85ad799dfd902ea88d977dab1868
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M configure.ac
    M m4/openvswitch.m4
    M tests/atlocal.in

  Log Message:
  -----------
  configure: Check for presence of Python 3.

The configure script already checked for Python 2 (>=2.7).  Add another
check for Python 3 (>=3.4).  This will be used later for automatically
running tests with Python 3 as well if available.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: f7255f0661ad642b22486a15cd9ffc8515e68935
      https://github.com/openvswitch/ovs/commit/f7255f0661ad642b22486a15cd9ffc8515e68935
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/json.at

  Log Message:
  -----------
  json.at: Run for Python 2 and 3.

Run json.at tests for both Python 2 and 3 if available.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: f08b8d918f1ae7c9c814c31a7e600bd16687e1a5
      https://github.com/openvswitch/ovs/commit/f08b8d918f1ae7c9c814c31a7e600bd16687e1a5
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/ovsdb.at

  Log Message:
  -----------
  ovsdb.at: Run Python tests for Python 2 and 3.

ovsdb.at includes some macros for running some identical test cases for
both C and Python.  Update these macros to run the test case for both
Python 2 and 3.  Retain the existing behavior for the direct use of the
_PY versions of these macros to only run against Python 2 without any
changes needed.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 963f66b5ec78f2df39f7d6ce2f8d55133876ef6d
      https://github.com/openvswitch/ovs/commit/963f66b5ec78f2df39f7d6ce2f8d55133876ef6d
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/ovsdb-idl.at

  Log Message:
  -----------
  ovsdb-idl.at: Run tests with both Python 2 and 3.

Update Python tests to run for both Python 2 and Python 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: d5da6c53ca75df14d698c5355afb492057e2b814
      https://github.com/openvswitch/ovs/commit/d5da6c53ca75df14d698c5355afb492057e2b814
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/library.at

  Log Message:
  -----------
  library.at: Run tests for Python 2 and 3.

Update Python tests to run for both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 58bed3df484b777dd7362053eee00c79504be2e0
      https://github.com/openvswitch/ovs/commit/58bed3df484b777dd7362053eee00c79504be2e0
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/jsonrpc-py.at

  Log Message:
  -----------
  jsonrpc-py.at: Run tests with Python 2 and 3.

Convert these Python tests to run with both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 9a4d919a05bb16bef1186ab3d852df674b4a8aa9
      https://github.com/openvswitch/ovs/commit/9a4d919a05bb16bef1186ab3d852df674b4a8aa9
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/reconnect.at

  Log Message:
  -----------
  reconnect.at: Run tests for Python 2 and 3.

Update the reconnect tests to use both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: cede00f2ce2f0b1ba375a48f02a211d05823b052
      https://github.com/openvswitch/ovs/commit/cede00f2ce2f0b1ba375a48f02a211d05823b052
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/daemon-py.at

  Log Message:
  -----------
  daemon-py.at: Run tests with Python 2 and 3.

Update these Python tests to run with both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 0f9bd013cccfb8f7aca9fc720b1acadce2a46dc0
      https://github.com/openvswitch/ovs/commit/0f9bd013cccfb8f7aca9fc720b1acadce2a46dc0
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/unixctl-py.at

  Log Message:
  -----------
  unixctl-py.at: Run tests for Python 2 and 3.

Update these Python tests to run with both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: d13c05eef713c184c6a828155051c393cbd6dc6b
      https://github.com/openvswitch/ovs/commit/d13c05eef713c184c6a828155051c393cbd6dc6b
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M tests/vlog.at

  Log Message:
  -----------
  vlog.at: Run tests for Python 2 and 3.

Update these Python tests to run with both Python 2 and 3.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


  Commit: 99c8be3ee47022ce7e02070a5a0a420555c9a720
      https://github.com/openvswitch/ovs/commit/99c8be3ee47022ce7e02070a5a0a420555c9a720
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-02-22 (Mon, 22 Feb 2016)

  Changed paths:
    M NEWS
    M python/setup.py

  Log Message:
  -----------
  NEWS: Claim support for Python 3.

Also update the Python ovs package info to note that both Python 2 and 3
are supported.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/e8fed7d01ca6...99c8be3ee470


More information about the git mailing list