]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: virsh-optparse: Drop obsolete cpu-stats test cases
authorIlias Stamatis <stamatis.iliass@gmail.com>
Sun, 28 Jul 2019 10:02:20 +0000 (12:02 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 29 Jul 2019 13:56:46 +0000 (15:56 +0200)
These test cases will start failing once the test driver provides
implementation for the virDomainGetCPUStats API.

Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/virsh-optparse

index 090d6c205ca7cd90f779e46529753bedbe076acd..d9c8f3c731b3ef93b47a2877fab7b34b8270a098 100755 (executable)
@@ -179,26 +179,6 @@ virsh -q -c $test_url cpu-stats test --start -1 >out 2>err && fail=1
 test -s out && fail=1
 compare exp-err err || fail=1
 
-# Zero. The test driver doesn't support the operation so the command
-# fails, but the value has been parsed correctly
-cat <<\EOF > exp-err || framework_failure
-error: Failed to retrieve CPU statistics for domain 'test'
-error: this function is not supported by the connection driver: virDomainGetCPUStats
-EOF
-virsh -q -c $test_url cpu-stats test --start 0 >out 2>err && fail=1
-test -s out && fail=1
-compare exp-err err || fail=1
-
-# Valid numeric value. The test driver doesn't support the operation
-# so the command fails, but the value has been parsed correctly
-cat <<\EOF > exp-err || framework_failure
-error: Failed to retrieve CPU statistics for domain 'test'
-error: this function is not supported by the connection driver: virDomainGetCPUStats
-EOF
-virsh -q -c $test_url cpu-stats test --start 42 >out 2>err && fail=1
-test -s out && fail=1
-compare exp-err err || fail=1
-
 ### Test a scaled numeric option
 
 # Non-numeric value