On Sun, Oct 05, 2008 at 04:31:19PM -0500, Shawn Walker wrote:
> If you'll note lines 34-35 of t_twodepot.py, you'll see that it has set
> persistent_depot = true. That means that setUp() and tearDown() won't be
> run before and after each test.
Ah, okay. I thought the persistent depot stuff didn't destroy the depot,
but still destroyed the image between functions.
And the other problem is that I run into bug 3726 (which is how I
discovered it). I suppose I can put the test in, and mark it as a current
failure.
At any rate, the tests I have now are
def test_zzz_uninstall_after_preferred_authority_change(self):
"""Install a package from the preferred authority, change the
preferred authority, and attempt to remove the package."""
self.pkg("install [EMAIL PROTECTED]")
self.pkg("set-authority -P test2")
self.pkg("uninstall foo")
# Change the image metadata back to where it was, in preparation
# for the next test.
self.pkg("set-authority -P test1")
def test_zzz_uninstall_after_preferred_authority_removal(self):
"""Install a package from the preferred authority, remove the
preferred authority, and attempt to remove the package."""
self.pkg("install [EMAIL PROTECTED]")
self.pkg("set-authority -P test2")
self.pkg("unset-authority test1")
self.pkg("uninstall foo")
Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss