[Bugs] [Bug 1615037] Multiplex tests use a cleanup pattern that results in empty tarballs on failure

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 13 03:01:17 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1615037

Worker Ant <bugzilla-bot at gluster.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|POST                        |MODIFIED



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20706 committed in master by "Atin
Mukherjee" <amukherj at redhat.com> with a commit message- tests: Fix cleanup
routine for some mux tests

Some of the mux tests, set a trap to catch test exit and
call cleanup. This will cause cleanup to be invoked twice
in case the test times out, or even otherwise, as include.rc
also sets a trap to cleanup on exit (TERM and others).

This leads to the tarballs generated on failures for these
tests to be empty and does not aid debugging.

This patch corrects this pattern across the tests to the
more standard cleanup at the end.

Fixes: bz#1615037
Change-Id: Ib83aeb09fac2aa591b390b9fb9e1f605bfef9a8b
Signed-off-by: ShyamsundarR <srangana at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=OdPiyv4wDB&a=cc_unsubscribe


More information about the Bugs mailing list