Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Apr 2019 16:21:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@freebsd.org
Subject:   [Bug 237128] sys/geom/class/eli:online_resize_test fails to clean up cleanly, causing false positives
Message-ID:  <bug-237128-32464-wb0NSbdi0O@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237128-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237128-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237128

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Tue Apr  9 16:20:36 UTC 2019
New revision: 346057
URL: https://svnweb.freebsd.org/changeset/base/346057

Log:
  Fix geli device cleanup

  Final cleanup routines shouldn't be called from testcases; it should be
called
  from the testcase cleanup routine.

  Furthermore, `geli_test_cleanup` should take care of cleaning up geli
providers
  and the memory disks used for the geli providers. `geli_test_cleanup` will
always
  be executed whereas the equivalent logic in `geli_test_body`, may not have
been
  executed if the test failed prior to the logic being run.

  Prior to this change, the test case was trying to clean up `$md` twice: o=
nce
in
  at the end of the test case body function, and the other in the cleanup
function.
  The cleanup function logic was failing because there wasn't anything to c=
lean
up
  in the cleanup function and the errors weren't being ignored.

  This fixes FreeBSD test suite runs after r345864.

  PR:           237128
  Reviewed by:  asomers, pjd
  Approved by:  emaste (mentor)
  MFC with:     r345864
  Differential Revision:        https://reviews.freebsd.org/D19854

Changes:
  head/tests/sys/geom/class/eli/online_resize_test.sh

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237128-32464-wb0NSbdi0O>