]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: ceph-helpers.sh reduce kill_daemon verbosity
authorLoic Dachary <ldachary@redhat.com>
Sat, 30 May 2015 14:36:45 +0000 (16:36 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 8 Jul 2015 11:58:10 +0000 (13:58 +0200)
commitaefcf6d3859f0ebfac3390b8329be09a0d52b625
tree30e5bd3927d000e710563a0922692626b17c12d2
parentf9c682aa348bed6406f7a286b2872d70af4e7496
tests: ceph-helpers.sh reduce kill_daemon verbosity

When a test fails, the script returns immediately and kill_daemon
function is called to cleanup. It is quite verbose and requires
scrolling hundreds of lines back to find the actual error
message. Turn off the shell trace to reduce the verbosity and improve
error output readability.

The kill_daemon cannot just turn off set -x because it may be called by
a test, not just at the end of the run. Instead the kill_daemon function
checks if tracing is activated and temporarily disables it.

Also get rid of the find standard error that commonly happens when
kill_daemon is called to verify there are no leftovers and the test
directory does not exist.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
qa/workunits/ceph-helpers.sh