]> xenbits.xensource.com Git - people/liuw/osstest.git/commit
sg-run-job: testid generation: Process ts more like rest of args
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Feb 2015 15:36:34 +0000 (15:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 13 Feb 2015 14:01:46 +0000 (14:01 +0000)
commitab81e01bed80c521c4009f5271a487fd16d9cad5
tree7e13083d326043e0616a83e44a895170b9a99f77
parent716e60f5ebe63843cdce397998217060f5d5f3a1
sg-run-job: testid generation: Process ts more like rest of args

Remove ts as a separate parameter to spawn-ts.  The test script now
becomes the first entry in args.

We process it through the arg loop as before.  Currently there are no
calls where the first arg is `+' so the test script name ends up in
both real_args and testid_args.

We split it out of real_args into the ts variable with lshift.
We split it out of testid_args into the deftestid with lshift.

So afterwards in spawn-ts, all the variables (including real_args, ts,
deftestid and testid_args and hence host_testid_suffix) have the
values they would have had before.

Therefore there is no functional change for any existing calls.

However, because the first argument is not treated specially for the
`+' procesing loop, it is now possible to specify `+' as the first
entry in args to spawn-ts (ie where ts used to be) to arrange that the
deftestid (and hence, probably, the testid) is computed using later
arguments.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
sg-run-job