]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
orchestra.run: Notice when short-lived procs exit
authorZack Cerza <zack@redhat.com>
Fri, 10 Mar 2017 16:41:46 +0000 (09:41 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 10 Mar 2017 22:00:42 +0000 (15:00 -0700)
commitf437434ead9c0489f07361a5c787eb315edcdde4
tree76debb448a5bf5fa5c990972cd5778bb243fd313
parent9ee0d6d6da1b33585637e829dc25f81b01118cc5
orchestra.run: Notice when short-lived procs exit

If a command exits immediately, there is a race between greenlet
completion (which flushes the ChannelFile buffers) and the call to
exit_status_ready(). Waiting for 0.1s on the greenlets removes the race
condition.

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