<div dir="ltr">On 27 September 2017 at 21:43,  <span dir="ltr">&lt;<a href="mailto:libertad.cruz@intel.com" target="_blank">libertad.cruz@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"><div class="gmail-HOEnZb"><div class="gmail-h5">From: libertad &lt;<a href="mailto:libertad.cruz@intel.com">libertad.cruz@intel.com</a>&gt;<br>
<br>
Adds dpkg testcases for testing basic operation functionality for the dpkg packgage manager.Adds new assert function to verify expected results given by the dpkg package</div></div></blockquote><div><br></div><div>Basic functionality of a package manager is list packages, add packages, remove packages.</div><div><br></div><div>Whereas the bulk of this this test verifies that four combinations of --help or --version work, which isn&#39;t actually testing anything beyond &quot;is dpkg installed&quot;.</div><div><br></div><div>Can we just remove all of them?  I don&#39;t see the point in cluttering testopia and the source with test cases that don&#39;t actually test anything.</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 class="gmail-HOEnZb"><div class="gmail-h5">
     @OETestID(1812)<br>
     def test_dpkg_status(self):<br>
-        self.dpkg(&#39;dpkg -s dpkg&#39;)<br>
+        self.dpkg(&#39;dpkg -s dpkg&#39;,&quot;Package: dpkg&quot;)<br></div></div></blockquote><div><br></div><div>I&#39;d suggest also verifying the status.  It should be &#39;Status: install ok installed&#39;.</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"><div class="gmail-HOEnZb"><div class="gmail-h5">
     @OETestID(1814)<br>
     def test_dpkg_list(self):<br>
-        self.dpkg(&#39;dpkg -l&#39;)<br>
+        self.dpkg(&#39;dpkg -l&#39;,&quot;Desired=Unknown/Install/<wbr>Remove/Purge/Hold&quot;)<br></div></div></blockquote><div><br></div><div>If dpkg -l crashes immediately after outputting the header (say, the database parser was broken) then this test would pass.</div><div><br></div><div>Either search it for some essential packages (&quot;ii dpkg&quot; would be a good start), or remove the test.</div><div><br></div><div>Ross </div></div></div></div>