<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 4, 2016 at 6:39 PM, Sylvain Pineau <span dir="ltr"><<a href="mailto:sylvain.pineau@canonical.com" target="_blank">sylvain.pineau@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span class="">
    <div>On 04/01/2016 10:45, Pierre Equoy
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Jan 4, 2016 at 4:43 PM,
            Sylvain Pineau <span dir="ltr"><<a href="mailto:sylvain.pineau@canonical.com" target="_blank"></a><a href="mailto:sylvain.pineau@canonical.com" target="_blank">sylvain.pineau@canonical.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote">
              <div>
                <div>Hello,<br>
                  <br>
                  To test template jobs using the "plainbox run" command
                  you have to select the resource job that generates the
                  new jobs.<br>
                  <br>
                  for example: plainbox run -i .*<span>block_device -i </span>"^.*info/hdparm.*$"<span><br>
                  </span></div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Thanks for this, it should help a lot!<br>
              <br>
            </div>
            <div>Generally speaking, how to know what resource job
              generates what template job(s)?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    Juts look at the job definition, the resource job is mentioned in
    the field <code><span><span>template</span>-resource<br>
        <br>
        More info here:<br>
      </span></code><a href="http://plainbox.readthedocs.org/en/latest/manpages/plainbox-template-units.html?highlight=template#template-specific-fields" target="_blank">http://plainbox.readthedocs.org/en/latest/manpages/plainbox-template-units.html?highlight=template#template-specific-fields</a></div></blockquote><div><br></div><div>Thanks. Is there more information about resource jobs? I couldn't find anything relevant on readthedocs nor in the “plainbox-provider-resource-generic” provider (the README file [1] is pretty short :))<br><br></div><div>I think you did a typo in your previous e-mail. Since, in my case:<br><br><span style="font-family:monospace,monospace">template-resource: device</span><br></div><div><br></div><div>I should launch the “device” resource job followed by the info/hdparm* jobs:<br><br>plainbox run -i ".*device" -i "^.*info/hdparm.*$"<br><br></div><div>And this gives me the result I expect:<br><br>===[ Results ]===<br> ☑ : Collect information about installed software packages<br> ☑ : Collect information about hardware devices (udev)<br> ☑ : block_device<br> ☑ : info/hdparm_sda.txt<br><br><br></div><div>It is possible to list the available jobs in plainbox using:<br><br>plainbox dev list job<br><br></div><div>so in my case, the following command helped:<br><br>plainbox dev list job | grep device<br>job '2013.com.canonical.certification::audio/list_devices'<br>job '2013.com.canonical.certification::audio/list_devices_after_suspend_30_cycles'<br>job '2013.com.canonical.certification::disk/storage_devices'<br>job '2013.com.canonical.certification::info/audio_device_driver'<br>job '2013.com.canonical.certification::info/network_devices'<br>job '2013.com.canonical.certification::dock/audio-list-devices'<br>job '2013.com.canonical.certification::device'<br>job '2013.com.canonical.certification::block_device'<br clear="all"></div></div><br><br><br></div><div class="gmail_extra">Thanks again Sylvain!<br><br></div><div class="gmail_extra"><br>[1] <a href="http://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/providers/plainbox-provider-resource-generic/README.rst">http://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/providers/plainbox-provider-resource-generic/README.rst</a><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(102,102,102)">Pierre Equoy<br>QA & Certification Engineer | Canonical<br><a href="http://www.canonical.com" target="_blank">www.canonical.com</a> | <a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a></span></div></div></div></div>
</div></div>