]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: facilitate background process debug in ceph-helpers.sh 12183/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 24 Nov 2016 18:52:14 +0000 (19:52 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 24 Nov 2016 18:52:14 +0000 (19:52 +0100)
commitf491ea062ddc651e69d49ebadd7a805bd9741d7e
tree653881a1c99993cd98d0fc608d8163285f4010ee
parent44aaeb7fcc8395865884aa82acecacc6f782e3cf
tests: facilitate background process debug in ceph-helpers.sh

When displaying the output of a background process, do it on stderr so
that it is not bufferized. Otherwise the output of the background
process may be displayed after it completed.

Prefix the output of a background process with the PID of the process
known to the parent instead of the PID of the awk process processing the
output. When wait_background loops, it will print the process on which
it is waiting and it is confusing that they do not match with the PID
prefixing the process output.

Refs: http://tracker.ceph.com/issues/17830

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-helpers.sh