On Tue, Jul 16, 2013 at 07:41:29AM -0000, Milo Casagrande wrote: > Milo Casagrande has proposed merging lp:~milo/lava-tool/lava-165 into lp:lava-tool with lp:~milo/lava-tool/device-parameters as a prerequisite. > > Requested reviews: > Antonio Terceiro (terceiro) > > For more details, see: > https://code.launchpad.net/~milo/lava-tool/lava-165/+merge/174942 > > This adds final work towards completing the lava helper tools for card-15. > The merge adds the following commands: > > lava init [DIR] > lava run [JOB|DIR] > lava submit [JOB|DIR] > lava update [JOB|DIR] > > The "init" command initializes a directory with a job definition file, and a default subdirectory called "tests/" that will contain the test definition file(s), and a default shell script, called "mytest.sh". The test definition file steps, by default, will execute the shell script. The user is prompted to fill in the shell script. > > The "run" command runs a job file on the local dispatcher, the "submit" one will send the job file to a remote LAVA server. > > The "update" command can be used, in case the user modifies the content of the "tests/" directory, to update the job file. > > The "run", "submit" and "update" commands can accept a job file (.json extension), a directory (it will pick up the first .json file) or nothing to use the current working directory. > > New Parameter class have been introduced, not used at this stage, but where used with the first implementation. New attributes have also been added in order not to store the parameter on disk at program exit. > > Tests have been added to cover most of the new features. arf ... this one was big! > === added file 'lava/commands.py' > --- lava/commands.py 1970-01-01 00:00:00 +0000 > +++ lava/commands.py 2013-07-22 09:32:26 +0000 > @@ -0,0 +1,293 @@ > +# Copyright (C) 2013 Linaro Limited > +# > +# Author: Milo Casagrande