]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCommandSetDryRun: Add flags to linebreak and strip prefix from the command buffer
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 08:56:23 +0000 (10:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
commit01c357a4c9e27d5123e8996cad14eb0e66786bd3
treecc6ab94a5f13fc0db9fc92c27bafba7e6f12dc89
parent0dffca8f9561b8266b82bbc8c7c7ab4622a9b719
virCommandSetDryRun: Add flags to linebreak and strip prefix from the command buffer

virCommandToStringFull used internally when virCommandSetDryRun is
requested allows to strip command path and wrap lines nicely. Expose
these via virCommandSetDryRun so that tests can use those features
instead of local hacks.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircommand.c
src/util/vircommandpriv.h
tests/networkxml2firewalltest.c
tests/nodedevmdevctltest.c
tests/nwfilterebiptablestest.c
tests/nwfilterxml2firewalltest.c
tests/sysinfotest.c
tests/virfirewalltest.c
tests/viriscsitest.c
tests/virkmodtest.c
tests/virnetdevbandwidthtest.c