]> xenbits.xensource.com Git - libvirt.git/commit
virCommand: Introduce virCommandSetDryRun
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Jan 2014 18:18:43 +0000 (19:18 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 29 Jan 2014 17:01:36 +0000 (18:01 +0100)
commit550a2ceffb46f2a7dbc6ce0197da8b1b6e8c5abd
tree95a505c2dc4b670ce08c3e3087539966c974972e
parent7076b4b72ce65c43a88af6b11558ed37893af692
virCommand: Introduce virCommandSetDryRun

There are some units within libvirt that utilize virCommand API to run
some commands and deserve own unit testing. These units are, however,
not desired to be rewritten to dig virCommand API usage out. As a great
example virNetDevBandwidth could be used. The problem with the bandwidth
unit is: it uses virCommand API heavily. Therefore we need a mechanism
to not really run a command, but rather see its string representation
after which we can decide if the unit construct the correct sequence of
commands or not.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/vircommand.c
src/util/vircommand.h