avocado-framework/avocado — pull request #251 by lmr (2014-11-06 16:46:30+00:00)
Title: Process init on demand v4

Follow up to PR #246
.
Move SubProcess() internal subprocess initialization to a separate method, and don't execute it at init time. Add a new .start() method, for people wanting to use background processes, such as QEMU instances inside a virt related test.

With this, we honor the user's expectation for the run() method - start a process and wait until it ends. Also, it requires a minimal change in the virt plugin (calling the .start() method in the QEMU SubProcess() call).

Changelog:

https://github.com/lmr/avocado/compare/process_init_on_demand_v4...process_init_on_demand_v4?diff=split

v3 -> v4:

Added shell param to `process` APIs, since that was the solution to the functional tests being stuck on the Travis CI VM.

v2 -> v3:

Added functional tests (adapted from original code made by @ruda).