avocado.cli.parser: Remove unused -V option

This option has been replaced with option --show-job-log,
specific to the test runner.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: Remove --loglevel and add --job-log-level to 'run' subcommand

It was an option that didn't work properly, and made
more sense to the run subcommand anyway. Now, you can
provide one of the valid logging levels in the python
logging level translated to a lowercase string
('debug', 'info', 'warning', 'error', 'critical') and
that will be the level used for the job log in both
disk and --show-job-log.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.core.tree: Make get_path code a little more robust
avocado: Use variant basenames to compose test tags

So that we won't need to use sequential numbers in
multiplexed tests anymore.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #230 from lmr/tidy-up-options

Tidy up options
avocado.multiplexer: Expand the list comprehension.

Expand the list comprehension that handles filtering.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.core.tree: Add method to detach a node.

Add method to detach a node from the tree.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.core.tree: Adopt path_parent() from avocad.multiplexer.

Adopt function path_parent() from the module avocado.multiplexer.
We will need this when we move the filtering to the level of
the tree.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.core.tree: Introduce function apply_filters().

Introduce function apply_filters(), which will prune
the tree that we use to multiplex and create variants,
by using rules for filter only and filter out, passed by
the command line (aka global filters).

It works for the test runner and for the multiplex plugin,
or anything that uses the TreeNode data structure with filters.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.multiplexer: Ignore root node if it is leaf.

When getting leaves, if the node is root and alone, ignore it.
This situation is possible if filtering just preserves the root node,
so the root node will be leaf and returned.

That makes things a bit weird to get the variants,
because it will become one. So, we are going to ignore it.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.multiplexer: Don't probe local filters.

In the current state of the code, the local filters are broken, so it's
better to keep it disable for now.
multiplexer: Fix code style.
Merge pull request #229 from ruda/multiplex_refinements

Multiplex refinements: filters
man: Remove options that were already removed from the avocado app

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
man: Explain --silent effect

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.job: Use sequential numbers for variant tags, do not encode names

Basically, trying to encode information of the variants themselves
in the tag name is a lost battle, since:

1) We need unique test ids, and sometimes only the last part of
   the name of each variant combined is not going to cut it
2) Coding the entire path of each variant combined would create
   in many cases enormous tags and the point would be lost

So go back and use sequential numbers that match the output
of the multiplex plugin. This way it'll be easy to correlate
variants and tag numbers.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.multiplexer: Reduce message priority for better output

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
man: Explain --job-log-level option

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #231 from lmr/sprint-14-pendencies

Sprint 14 pendencies