Hey, Thanks for the update, we're glad to help. I'm happy to know it's partially working for you. I'm not aware of many other use-cases such as this, so I fully expect there are bugs. Though this is functionality that "should" work, so please feel free to report problems to us.
Have you tried or had any luck with the logging.* functions (i.e. logging.debug(), logging.info(), etc.)? I'd expect those should work fine. I'm assuming the child threads all inherit the file descriptors of the parent, but that's a total guess. I'm not experienced with stdout/stderr within autotest threading, best rely on others here for an answer/suggestions in that area (Lucas/Cleber?) On 03/01/2012 09:46 AM, Yogesh Kulkarni wrote: > Hi Chris, Lucas > > Thanks for your assistance. > class AsyncJob() is doing fine. > > Applied patch from : > https://github.com/autotest/autotest/commit/4296a0fd36ed5b7c10bfb4fcad4fc18ad79cb7fa#diff-4 > > The small problem I am getting is, the slave thread in the test which is > waiting for master is not showing any results. > Master thread logs are reflected in the results directory. > Both are dumping logs in the stdout/stderr descriptors, so using > get_stdout(), get_stderr() methods. > One thing is confirmed that test is getting executed as expected. > > Still debugging on this issue, surely will update you about the same. > > > -thanks > yogesh > > > On Wed, Feb 29, 2012 at 6:55 PM, Chris Evich<[email protected]> wrote: > >> On 02/29/2012 06:09 AM, Yogesh Kulkarni wrote: >>> Does autotest provide any interfaces to launch multiple >> processes/sessions >>> on the client machine so that I can execute slave and master as different >>> processes and collect result of both of them back to the server ? >> >> Hey, >> >> While you asked for processes, I did find a possible threading solution: >> common_lib/utils.py which pulls in base_utils.py class AsyncJob(). I >> didn't look too deeply at any synchronization aspects or other helpers, >> but on the surface it appears it may work for you. Let us know if you >> can't figure it out, or can't find anything that would work. Thanks! >> >> -- >> Chris Evich, RHCA, RHCE, RHCDS, RHCSS >> Quality Assurance Engineer >> e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214 >> _______________________________________________ >> Autotest mailing list >> [email protected] >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >> > -- Chris Evich, RHCA, RHCE, RHCDS, RHCSS Quality Assurance Engineer e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
