[ovs-dev] [PATCH V11 00/17] Fix and enable Python tests on Windows

Paul Boca pboca at cloudbasesolutions.com
Tue Aug 2 17:45:38 UTC 2016


This series of patches ports the python damons to Windows and
fixes the tests to work on Windows.
There are still some python tests that fail on Windows, from which
some are failing on Linux too.
The patches in this series are dependent and are related to
python tests on Windows.

V2: Fixes more porting issues for Windows
V3: Fixes all python tests
    This series was extended from 16 to 21 patches in order to solve
    all python related tests in one series.
    To run the tests on windows 'pypiwin32' is required to be
    installed for both Python2 and Python3 (pip install pypiwin32).
V4: Rebased the entire series, if didn't apply anymore.
    Fixed delete of PID file on exit of python daemon, this leaded to
    removal of patch "python tests: Don't check if the PID file
    gets deleted".
V5: Removed "windows: Added lockf function and lock PID file to be sent
    individually and removed already merged patches from this series.
V6: Fixed some issues in porting the python daemon and enabled vlog/close
    tests.
V7: Addressed the required changes after review.
    Fixed flake8 errors, tested on Linux with flake8 and hacking libs
    installed.
V8: Splitted python daemon in different files, one wrapper and 2 files,
    each containing specific implementation for Windows/Linux
    Addressed requested changes from previous version.
V9: Fixed patches numbering
V10: Fixed exception on Unix
V11: No changes. Re-spinned for Patchwork.

Paul-Daniel Boca (17):
  python tests: Implemented signal.alarm for Windows
  python tests: Register signal handlers only on supported types on
    Windows
  python tests: Fixed ctl file name for Windows
  python tests: Fixed unixctl python tests for Windows
  python tests: Added fcntl module for Windows
  python tests: Skip IPsec test on Windows
  python tests: Skip TCP6 idl tests on Windows
  python tests: Skip python tests on Windows where POSIX pid is used
  python tests: Fixed OSError not iterable on Windows
  python tests: Fixed abs_file_name function for Windows
  python tests: Ported UNIX sockets to Windows
  python tests: Prepare porting Python daemon on Windows
  python tests: Ported Python daemon to Windows
  at tests: Allow Python tests to be run on Windows
  python tests: Ignore stderr output
  python tests: Skip ovn-controller-vtep tests on Windows
  tests: Skip vlog tests that try to move opened file

 INSTALL.Windows.md             |   1 +
 python/automake.mk             |   3 +
 python/ovs/daemon.py           | 491 ++-----------------------------------
 python/ovs/daemon_unix.py      | 530 ++++++++++++++++++++++++++++++++++++++++
 python/ovs/daemon_windows.py   | 535 +++++++++++++++++++++++++++++++++++++++++
 python/ovs/fatal_signal.py     |  44 +++-
 python/ovs/fcntl_win.py        |  42 ++++
 python/ovs/jsonrpc.py          |   4 +
 python/ovs/poller.py           |   7 +
 python/ovs/socket_util.py      |  56 ++++-
 python/ovs/stream.py           |   9 +-
 python/ovs/unixctl/__init__.py |  11 +-
 python/ovs/unixctl/server.py   |  16 +-
 python/ovs/util.py             |   6 +-
 python/ovs/vlog.py             |  12 +
 tests/appctl.py                |   4 +-
 tests/atlocal.in               |   7 -
 tests/daemon-py.at             |  14 ++
 tests/ovn-controller-vtep.at   |   2 +-
 tests/ovs-monitor-ipsec.at     |   1 +
 tests/ovsdb-idl.at             |   1 +
 tests/test-daemon.py           |   4 +-
 tests/test-ovsdb.py            |   4 +-
 tests/test-unix-socket.py      |   3 +-
 tests/unixctl-py.at            |  15 +-
 tests/vlog.at                  |  12 +-
 26 files changed, 1321 insertions(+), 513 deletions(-)
 create mode 100644 python/ovs/daemon_unix.py
 create mode 100644 python/ovs/daemon_windows.py
 create mode 100644 python/ovs/fcntl_win.py

-- 
2.7.2.windows.1



More information about the dev mailing list