<div dir="ltr">On 23 November 2017 at 01:34, Joshua Lock <span dir="ltr">&lt;<a href="mailto:joshua.g.lock@linux.intel.com" target="_blank">joshua.g.lock@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">      @OETestID(1540)<br>
</blockquote>
<br></span>
We&#39;re effectively stating that test ID 1540 and test ID 1545 are both covered by the same test method, right?<br>
<br>
Perhaps we don&#39;t need to maintain both test cases in Testopia, as we&#39;ll only ever see both tests pass or fail?</blockquote><div><br></div><div>Yes, reviewing and sanitising testopia was my next job.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">-                    features = &#39;MACHINE = &quot;qemux86&quot;\n&#39;<br>
-                    features += &#39;CORE_IMAGE_EXTRA_INSTALL += &quot;%s %s &quot;\n&#39;% (rootfs_pkg, boot_pkg)<br>
+                    features = &#39;CORE_IMAGE_EXTRA_INSTALL = &quot;postinst-delayed-b&quot;\n&#39;<br>
                      features += &#39;IMAGE_FEATURES += &quot;package-management empty-root-password&quot;\n&#39;<br>
</blockquote>
<br></div></div>
The indentation doesn&#39;t look right here?</blockquote><div><br></div><div>That would be Atom &quot;helpfully&quot; doing smart intentation.  I&#39;ll fix it up in something else, thanks.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">+                            status, output = qemu.run_serial(&quot;test -f %s &amp;&amp; echo found&quot; % os.path.join(targettestdir, filename))<br>
+                            self.assertEqual(output, &quot;found&quot;, &quot;%s was not present on boot&quot; % filename)<br>
<br>
</blockquote>
<br></span>
Why not just test the status (return code of test -f) instead of echoing a known value? i.e.<br>
<br>
self.assertEqual(status, 0, &quot;%s was not present on boot&quot; % filename)</blockquote><div><br></div><div>Because run_serial() is a bit lame and I don&#39;t trust it to correctly report the exit status.   Rewriting it is on my hitlist, yes.</div><div><br></div><div>Ross</div></div></div></div>