virshtest: Replace list and nodeinfo tests by equivalent VIR_TEST_SCRIPT variant
commit4b8581b8efda662659796bfb967fd3c92607b8b6
authorPeter Krempa <pkrempa@redhat.com>
Wed, 20 Mar 2024 16:34:45 +0000 (20 17:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (2 14:24 +0200)
tree3601c4419e019f6a9d5a3113438fbec15c0bced3
parente8e79e38e5f5129883eba7f576ea07b7bdfda68a
virshtest: Replace list and nodeinfo tests by equivalent VIR_TEST_SCRIPT variant

Add the basic list and info commands into a script and run it via
VIR_TEST_RUN_SCRIPT to simplify the code and save up on 'virsh'
instances exec'd for the test.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virshtest.c
tests/virshtestdata/info-custom.in [new file with mode: 0644]
tests/virshtestdata/info-custom.out [new file with mode: 0644]
tests/virshtestdata/info-default.in [new file with mode: 0644]
tests/virshtestdata/info-default.out [new file with mode: 0644]