~rodsmith/checkbox/smart-utf-probs

« back to all changes in this revision

Viewing changes to plainbox/docs/manpages/plainbox-job-units.rst

  • Committer: Daniel Manrique
  • Author(s): Zygmunt Krynicki
  • Date: 2015-09-22 08:39:52 UTC
  • mfrom: (4020.2.5 launchpad/misc-doc-fixes)
  • Revision ID: daniel_manrique-20150922083952-r3wd78oifcrq7h1a
"automatic merge of lp:~zyga/checkbox/misc-doc-fixes/ by tarmac [r=sylvain-pineau][bug=][author=zyga]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
    other namespaces.
280
280
    You can use the "as ..." syntax to import jobs that have dashes, slashes or
281
281
    other characters that would make them invalid as identifiers and give them
282
 
    a correct identifier name. E.g.:
283
 
 
284
 
      | imports: from 2013.com.canonical.certification import cpuinfo
285
 
      | requires: 'armhf' in cpuinfo.platform
286
 
 
287
 
      | imports: from 2013.com.canonical.certification import cpu-01-info as \
288
 
        cpu01
289
 
      | requires: 'avx2' in cpu01.other
290
 
 
291
 
    The syntax of each imports line is:
292
 
    IMPORT_STMT :: "from" <NAMESPACE> "import" <PARTIAL_ID>
293
 
                   | "from" <NAMESPACE> "import" <PARTIAL_ID> AS <IDENTIFIER>
 
282
    a correct identifier name. E.g.::
 
283
 
 
284
        imports: from 2013.com.canonical.certification import cpuinfo
 
285
        requires: 'armhf' in cpuinfo.platform
 
286
 
 
287
        imports: from 2013.com.canonical.certification import cpu-01-info as cpu01
 
288
        requires: 'avx2' in cpu01.other
 
289
 
 
290
    The syntax of each imports line is::
 
291
 
 
292
        IMPORT_STMT :: "from" <NAMESPACE> "import" <PARTIAL_ID>
 
293
                       | "from" <NAMESPACE> "import" <PARTIAL_ID> AS <IDENTIFIER>
294
294
 
295
295
===========================
296
296
Extension of the job format