mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
06f816cb7b
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>
27 lines
761 B
Plaintext
27 lines
761 B
Plaintext
echo Test the <timeout> option (numeric option converted to ms)
|
|
|
|
echo Non-numeric value
|
|
event --all --timeout abc
|
|
|
|
echo Numeric value that is too big to be converted to ms and still
|
|
echo fit inside an int
|
|
event --all --timeout 2147484
|
|
|
|
echo Numeric value with invalid suffix
|
|
event --all --timeout 42WB
|
|
|
|
echo Numeric value with valid suffix. Suffixes are not supported for
|
|
echo the <timeout> option, so this value is rejected
|
|
event --all --timeout 42MB
|
|
|
|
echo Negative value
|
|
event --all --timeout -1
|
|
|
|
echo Zero. This is not a valid timeout, but the value is parsed
|
|
echo correctly
|
|
event --all --timeout 0
|
|
|
|
echo Numeric value. No events will be received and the command will
|
|
echo fail after a second, but the value has been parsed correctly
|
|
event --all --timeout 1
|