mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
tests: virsh-optparse: Drop obsolete cpu-stats test cases
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>
This commit is contained in:
parent
642c231268
commit
ff94f44418
@ -179,26 +179,6 @@ virsh -q -c $test_url cpu-stats test --start -1 >out 2>err && fail=1
|
|||||||
test -s out && fail=1
|
test -s out && fail=1
|
||||||
compare exp-err err || 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
|
### Test a scaled numeric option
|
||||||
|
|
||||||
# Non-numeric value
|
# Non-numeric value
|
||||||
|
Loading…
Reference in New Issue
Block a user