Skip to content

Commit

Permalink
mon: functional tests teardown must be run on error
Browse files Browse the repository at this point in the history
otherwise daemons will keep running and interfere with tests happening
afterwards.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
Loic Dachary committed Mar 17, 2014
1 parent 514b5e3 commit 1a451f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/mon/mon-test-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ function main() {

set -x
setup $dir || return 1
run $dir || return 1
local code
if run $dir ; then
code=0
else
code=1
fi
teardown $dir || return 1
return $code
}

0 comments on commit 1a451f2

Please sign in to comment.