[qmtest] Saving output from a resource setup/cleanup
Craig, Dave
dwcraig at qualcomm.com
Wed Jul 27 21:05:57 UTC 2005
I agree. Composing resources from tests gives you more flexibility.
How about taking two tests to compose a resource? That would mean I
could store the stdout and stderr from both setup and cleanup as
different test cases. That would be very nice.
Thanks,
Dave
-----Original Message-----
From: Mark Mitchell [mailto:mark at codesourcery.com]
Sent: Wednesday, July 27, 2005 2:01 PM
To: Craig, Dave
Cc: qmtest at codesourcery.com
Subject: Re: [qmtest] Saving output from a resource setup/cleanup
Craig, Dave wrote:
> Is there a way to obtain the output from a resource setup/cleanup
> script? I've hacked a new resource that inherits from both Resource
and
> ExecTest that saves and presents its output for just the setup script
in
> QMTest 2.2. Is there something else that is less of hack that anyone
> else has found?
In general, I've been wondering whether it should be possible to create
a resource using a test class; the semantics in that case, would be that
the Run() function is used, but there is no cleanup function. Then, all
test classes would be instantly usable as resource classes.
(I don't think it really makes sense to go in the other direction; if
the resource class has a cleanup method then presumably its doing
something important, and we can't just ignore it. You could run the
cleanup immediately, I guess.)
Do people think this is a good idea?
--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304
More information about the qmtest
mailing list