no changes, just style cleanups
avocado: Insert children using add_child tree

When initializing TreeNode we should use the add_child function
in order to set the parent correctly.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
avocado.multiplexer: Construct the tree directly from yaml file

Instead of creating OrderedDicts and then converting it into
tree structure, this modifies the `mapping` constructor to create
the tree structure directly. This way we only walk through the yaml
file once.

Also remove the `tree_unittest.TestReadYAML` selftest as it lost it's
meaning. Valures are checked in the TestTreeNode selftest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
avocado.core.tree: Use yaml.CLoader when available

CLoader is C (faster) version of the Loader. In case it's unavailable
it fall-backs automatically to the default Loader.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
selftests: Speedup functional..multiplex_test

multiplex_test uses sleeptest to check it supplies the values correctly.
This patch uses passtest instead.

For now it uses the same multiplex file and in `test_run_mplex_timeout`
still uses sleeptest, but there is FIXME message to use envtest once
it supports params passing (another pull request)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge branch 'ldoktor-multiplexer'