Re: about multiple instances/sessions on the client machine !
Chris Evich <cevich <at> redhat.com>
2012-03-01 16:54:49 GMT
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
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 :
> 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.
> On Wed, Feb 29, 2012 at 6:55 PM, Chris Evich<cevich <at> redhat.com> wrote:
>> On 02/29/2012 06:09 AM, Yogesh Kulkarni wrote:
>>> Does autotest provide any interfaces to launch multiple
>>> 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 ?
>> 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 + ` <at> ' + redhat.com o: 1-888-RED-HAT1 x44214
>> Autotest mailing list
>> Autotest <at> test.kernel.org
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + ` <at> ' + redhat.com o: 1-888-RED-HAT1 x44214