[Freeipa-devel] [PATCH] 0032 Move DNS test skipping to class setup

Petr Viktorin pviktori at redhat.com
Wed Mar 28 08:55:07 UTC 2012


Currently, each DNS test case first checks if DNS is configured
by creating and deleting a test zone. This takes quite a lot of time.

This patch moves the check to the setUpClass method, so the check is
only done once for all the tests.



On my VM, this makes the DNS plugin tests 50% faster, saving about half 
a minute for each test run.

-- 
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0032-Move-DNS-test-skipping-to-class-setup.patch
Type: text/x-patch
Size: 1101 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120328/20627d59/attachment.bin>


More information about the Freeipa-devel mailing list