<div>Thanks for Sridhar. I separate the code by your comments. It can resolve this problem. ;-D</div><div><br></div><div>Thanks</div><div>Zhi Chang</div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Sridhar Gaddam"<sgaddam@redhat.com>;</div><div><b>Date: </b> Mon, Jul 20, 2015 05:16 PM</div><div><b>To: </b> "OpenStack Development Mailing List (not for usage questions)"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] [Neutron]Unit test failed but devstack was okay</div></div><div> </div>
  
    
  
  
    Hi Zhi Chang,<br>
    <br>
    You will have to use sorted to fix the test failure.<br>
    i.e.,
    
    <span class="pln" style="color: rgb(0, 0, 0); font-family:
      monospace; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: 1; word-spacing:
      0px; -webkit-text-stroke-width: 0px;">self</span><span class="pun" style="color: rgb(102, 102, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">.</span><span class="pln" style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">assertEqual</span><span class="pun" style="color: rgb(102, 102, 0); font-family:
      monospace; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: 1; word-spacing:
      0px; -webkit-text-stroke-width: 0px;">(sorted([</span><span class="str" style="color: rgb(0, 136, 0); font-family: monospace;
      font-size: 12px; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: 1; word-spacing:
      0px; -webkit-text-stroke-width: 0px;">'2.2.2.2'</span><span class="pun" style="color: rgb(102, 102, 0); font-family:
      monospace; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: 1; word-spacing:
      0px; -webkit-text-stroke-width: 0px;">,</span><span class="pln" style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;"> </span><span class="str" style="color: rgb(0, 136, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">'1.1.1.1'</span><span class="pun" style="color: rgb(102, 102, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;">]),</span><span class="pln" style="color: rgb(0, 0, 0); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans:
      auto; text-align: start; text-indent: 0px; text-transform: none;
      white-space: pre; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px;"> sorted(dns_list)</span><span class="pun" style="color: rgb(102, 102, 0); font-family:
      monospace; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: pre; widows: 1; word-spacing:
      0px; -webkit-text-stroke-width: 0px;">)</span><br>
    <br>
    --Sridhar.<br>
    <br>
    <div class="moz-cite-prefix">On 07/20/2015 11:17 AM, Zhi Chang
      wrote:<br>
    </div>
    <blockquote cite="mid:tencent_435F483A570722BC6BF2AF96@qq.com" type="cite">
      <div>Hi, all.</div>
      <div>    I write a unit test in devstack and runs all tests okay
        on my environment. Why does Jenkins failed when I upload my
        patch into review? The patch
        is <a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/199588/">https://review.openstack.org/#/c/199588/</a>. The failed test was
        named "<span style="font-family: monospace; font-size: medium;
          line-height: normal; text-indent: -286px; white-space:
          pre-wrap;">neutron.tests.unit.plugins.embrane.test_embrane_neutron_plugin.TestEmbraneSubnetsV2.test_subnet_lifecycle_dns_retains_order</span><span style="line-height: 1.5;">". But it is okay on my environment.
          Could someone tells me the reason? What should I do?</span></div>
      <div><span style="line-height: 1.5;"><br>
        </span></div>
      <div><span style="line-height: 1.5;"><br>
        </span></div>
      <div><span style="line-height: 1.5;">Thanks</span></div>
      <div>Zhi Chang</div>
      <div></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  


</div><!--<![endif]--></includetail></div>