]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Refactor teuthology.orchestra.run
authorZack Cerza <zack@cerza.org>
Fri, 30 May 2014 16:59:09 +0000 (11:59 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 30 May 2014 21:05:23 +0000 (16:05 -0500)
commitb386f5e5dfcc3c631fb67e06ab3c771e86e27966
tree4283b8df618cda2732ecdb3c71e10b11eb930a47
parent59ee17dc1944d35966693369edff785c5e73dc1d
Refactor teuthology.orchestra.run

RemoteProcess behaves more like subprocess.Popen, with some important
differences.

A summary of the API changes:
* RemoteProcess.exitstatus is either an int or None; it is never a callable
  nor a gevent.AsyncResult.
* New method: RemoteProcess.execute()
* New method: RemoteProcess.poll()
* New method: RemoteProcess.wait()
* New attribute: RemoteProcess.returncode - alias to exitstatus
* New property: RemoteProcess.finished - added because returncode can be None
  if the connection was interrupted
* run.execute() is removed.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/orchestra/run.py
teuthology/orchestra/test/test_integration.py
teuthology/orchestra/test/test_remote.py
teuthology/orchestra/test/test_run.py