]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 17 Sep 2015 12:57:43 +0000 (14:57 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Mon, 21 Sep 2015 15:55:38 +0000 (17:55 +0200)
commitbdcf8e60794c8aae9fc4aeaff200adf986381306
tree7de42cd6485b500bde6a4979b394d264d5c060f4
parent7ab3f53777f3cdd46264f76dae185a2c5740c86c
ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods

Those methods do the same thing as AsyncProcess counterparts, just
with logging the received output. It's better to move the logging into
AsyncProcess and control it with __init__ arguments.

This allows us to get rid of some duplicate tests for ovsdb monitor.

Change-Id: Ic20ded27ba09afdd73e4d96c47469c2d7b4d4db5
Related-Bug: #1495937
neutron/agent/linux/async_process.py
neutron/agent/linux/ovsdb_monitor.py
neutron/tests/unit/agent/linux/test_async_process.py
neutron/tests/unit/agent/linux/test_ovsdb_monitor.py