examples.wrappers: Use "$@" in dummy.sh.

Use "$@" for command line execution.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
examples.wrappers: Turn ltrace.sh smarter.

Use 'set -e' to exit in the first error problem, for example, when
the ltrace command is not installed.

The script now looks inside the log to probe for exit code, after
that, it tries to look if the process has been killed by a signal.
This order is different from the previous implementation.

The regular expression to probe for exit code and signals are improved.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
examples.wrappers: Use "$@" and --quiet in perf.sh.

Use "$@" for command line execution and pass the option --quiet
to perf, to avoid touching the stderr.

Note that even with --quiet option, the perf utility could
display messages in the output. It's not 100% free of output.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
examples.wrappers: Use "$@" in strace.sh.

Use "$@" for command line execution.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
examples.wrappers: Use exec and "$@" in valgrind.sh.

Use "$@" for command line execution.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
examples.wrappers: New wrapper time.sh.

New wrapper script: run process inside /usr/bin/time.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
Merge pull request #310 from ruda/update_wrapper_scripts

Update wrapper scripts
avocado.aexpect: Don't use a predictable, non system wide tmp dir

Instead of using /tmp/aexpect, use per aexpect instance
directories, tied to their aexpect ids (that are randomly
generated). This way we fix the potential security issue,
and also, clean up more efficiently the aexpect tmp files
(all is gone upon the .close() method happens, or garbage
collection - whatever happens first).

Put a DEBUG flag on the aexpect module, that will leave
the tmp files in case people want to debug the code.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #314 from lmr/aexpect-tmpdir-fix

avocado.aexpect: Don't use a predictable, non system wide tmp dir
Merge pull request #315 from ldoktor/multiplexer

avocado.multiplexer: Support for debug run [v3]
avocado.core.tree: Return self as root when no parents

self is a valid node and can be root of the tree.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
FIXME: avocado.core.tree: Support for including files from yaml

TODO: Add documentation

This patch defines "!include" tag for inserting other files from within
the yaml file.

Keep in mind that it's necessarily to separate the ':' from the tag,
otherwise yaml thinks it's a different tag.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
FIXME: avocado.core.tree: Support for using

TODO: Add documentation

Support for '!using' flag. It extends the current leaf location
of the provided path. It can't completely change the location,
it only extends the base.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
FIXME: avocado.core.tree: Support for remove_node flag

This pach adds support for yaml tag "!remove_node", which during the
merge removes the node defined in previous tree. This happens only
during merge, before new children are added.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
FIXME: avocado.core.tree: Support for remove_value

TODO: Add documentation

This patch adds support for '!remove_value' yaml tag. It can be used
to remove certain value from previously existing values. This happens
during merge before value is updated.

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