Added string stdin support to utils.BgJob and all its users that give it
a stdin argument (like utils.run()). Fixed a bug in _wait_for_commands()
when used for more than one BgJob where if a BgJob would finish then it
would enter a 100% CPU loop because the stdout/stderr descriptors are
not removed from the select sets. Added unittest for utils.run. Updated
users of utils.run() that were creating dummy files or pipes to
workaround the fact that they could not give utils.run() a string stdin.
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3839 592f7852-d20e-0410-864c-8624ca9c26a4
4 files changed