lp:~zyga/lava-core/commands-pkg
- Get this branch:
- bzr branch lp:~zyga/lava-core/commands-pkg
Branch merges
- Linaro Validation Team: Pending requested
- Diff: 0 lines
Branch information
Recent revisions
- 11. By Zygmunt Krynicki
-
Add lava.core.commands and CommandError to lava.core.errors
The commands package (which actually has interesting code in __init__.py) is
going to be used as a root for all the top-level command groups that lava ships
with.Most of the code here comes from lava-core but has been sufficiently modified
from the original. Among the changes are improved logging, debugging and
history tracking support (some of which is scheduled in another, separate patch
to simplify code review). The same core concepts remain: lava uses Commands to
express users' intent to do something, keeps all commands in one of several
CommandGroup so that related commands appear together (for example, `lava
scenario check`, `lava scenario run`) and uses the Dispatcher (which is
confusingly overloaded to mean the old test scenario runner from
lp:lava-dispatcher and the equally old command runner from lp:lava-tool) to
glue everything together. The dispatcher also has a run() method that is
something you may want to call from main()-like function to implement a command
line program.It's worth noting that in LAVA all command groups are pluggable (so any third
party extension can add more commands using the lava.core.plugins system). All
commands and command groups have to be enumerated in setup.py's entry_points
section. Subsequent patches will provide a few basic lava commands to
illustrate this. - 7. By Zygmunt Krynicki
-
Add stub Environment class
Environment is a json-document Document that wraps the entire lava
configuration. Subsequent patches will add more functionality, as needed by
other parts of core. Note: this environment will eventually replace
settings.conf from lava-server. - 6. By Zygmunt Krynicki
-
Add project support files
This is the basic set of files: setup.py, MANIFEST.in, some text files, and the
basic package structure. I've left out HACKING as I want to do some editiong on
the contents.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:lava-core