[libvirt] [PATCH 5/7] Add virCommandSetMockOutputFile

Ján Tomko jtomko at redhat.com
Wed Mar 12 15:33:22 UTC 2014


On 03/12/2014 03:26 PM, Daniel P. Berrange wrote:
> On Wed, Mar 12, 2014 at 02:08:15PM +0100, Ján Tomko wrote:
>> > After this file is set, all commands executed will be replaced by
>> > cat <file>.
> I think this is a bit too special case and unecessarily forces
> use of an external cat command. I think your test would be
> easier if using this callback approach I've just proposed
> 
> https://www.redhat.com/archives/libvir-list/2014-March/msg00733.html

Definitely nicer, but it doesn't work with asynchronous commands.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140312/915fbc87/attachment-0001.sig>


More information about the libvir-list mailing list