Skip to content

Commit

Permalink
qa: Dump logs after daemons are killed to make sure everything is flu…
Browse files Browse the repository at this point in the history
…shed

Signed-off-by: David Zafman <dzafman@redhat.com>
  • Loading branch information
dzafman committed Aug 4, 2017
1 parent 24c8d7e commit 4314cdd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qa/standalone/ceph-helpers.sh
Expand Up @@ -152,11 +152,15 @@ function test_setup() {
#
function teardown() {
local dir=$1
local dumplogs=$2
kill_daemons $dir KILL
if [ `uname` != FreeBSD ] \
&& [ $(stat -f -c '%T' .) == "btrfs" ]; then
__teardown_btrfs $dir
fi
if [ "$dumplogs" = "1" ]; then
display_logs $dir
fi
rm -fr $dir
rm -rf $(get_asok_dir)
}
Expand Down Expand Up @@ -1840,10 +1844,9 @@ function main() {
if run $dir "$@" ; then
code=0
else
display_logs $dir
code=1
fi
teardown $dir || return 1
teardown $dir $code || return 1
return $code
}

Expand Down

0 comments on commit 4314cdd

Please sign in to comment.