]> xenbits.xensource.com Git - libvirt.git/commit
virshtest: Adapt 'event' option arg handling tests from 'virsh-optparse'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 18 Mar 2024 14:38:39 +0000 (15:38 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:30 +0000 (14:24 +0200)
commit06f816cb7b2bdb0761d48069aba843893bcb036c
tree218ee7259acf9f75ba94c9a992596d97478ec812
parent2aec9b399bc663d931a7930ada1c08d845e3dadf
virshtest: Adapt 'event' option arg handling tests from 'virsh-optparse'

Move the argument parsing tests excercising 'virsh event' options
from 'virsh-optparse' to 'virshtest'.

As the test invokes 'virsh event' with a timeout and thus waits for one
second pointlessly the patch also adds infrastructure to mark individual
cases as expensive and is skipped normally.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/meson.build
tests/virsh-optparse [deleted file]
tests/virshtest.c
tests/virshtestdata/numeric-parsing-event.in [new file with mode: 0644]
tests/virshtestdata/numeric-parsing-event.out [new file with mode: 0644]