[PATCH] samba-tool throws error if there is an empty FSMO role

Rowland Penny repenny241155 at gmail.com
Wed May 25 15:37:33 UTC 2016


On 25/05/16 12:15, Andrew Bartlett wrote:
> On Wed, 2016-05-11 at 20:06 +0100, Rowland Penny wrote:
>> On 11/05/16 19:55, Andrew Bartlett wrote:
>>> On Wed, 2016-05-11 at 15:51 +0100, Rowland Penny wrote:
>>>
>>>> OK, if I set up an fl2000dc testenv and run:
>>>>
>>>> make test TESTS="samba.tests.samba_tool.fsmo"
>>>> SUBUNIT_FORMATTER=cat
>>>>
>>>> and get:
>>>>
>>>> testsuite-failure: samba.tests.samba_tool.fsmo(fl2000dc:local)
>>>>
>>>> and then patch fsmo.py and re-run:
>>>>
>>>> make test TESTS="samba.tests.samba_tool.fsmo"
>>>> SUBUNIT_FORMATTER=cat
>>>>
>>>> and get:
>>>>
>>>> testsuite-success: samba.tests.samba_tool.fsmo(fl2000dc:local)
>>>>
>>>> Does this mean I have a test for 'samba-tool fsmo show' that
>>>> works ?
>>> Quite likely, yes!
>>>
>>> Indeed, you have found the correct approach of checking the test
>>> fails
>>> in the 'before' case (something we can forget to actually verify).
>>>
>>> Now just make it run in the other environments as well (see
>>> elsewhere
>>> in the file for the for loop pattern across ad_dc_ntvfs, fl2003dc
>>> and
>>> fl2008dc), and post the patch!
>>>
>>> Andrew Bartlett
>>>
>> I am lying down in a darkened room to recover :-)
>> I will then try to run it as you suggest.
> I'm looking forward to reviewing the patches as soon as you can post
> them.
>
> Thanks!
>
> Andrew Bartlett
>

Hi Andrew, been a bit out of sorts lately, so haven't been able to work 
on this much, got a bit discouraged as well because I couldn't seem to 
get the test to work with multiple environments.

Could you have a look at the attached patches and tell me if I am going 
in the right direction and if possible, what I am doing wrong.

It doesn't help that I don't understand just how the tests are run :-)

Rowland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Add-test-for-samba-tool-fsmo-show.patch
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160525/4815b9bb/Add-test-for-samba-tool-fsmo-show.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Add-fsmo-test-script.patch
Type: text/x-diff
Size: 1798 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160525/4815b9bb/Add-fsmo-test-script.diff>


More information about the samba-technical mailing list