[libvirt] [PATCH] test: virsh-optparse: Fix expected test output with new error checking

Peter Krempa pkrempa at redhat.com
Thu Apr 13 08:16:14 UTC 2017


Commit 4f4c3b1397c4b5d16af added code to remember errors during freeing
of domain objects. This changed the output when testing scaled numbers
parsing in virsh-optparse. Adjust the expected output.
---
I didn't run it with VIR_TEST_RUN_EXPENSIVE. I'll look into whether that
variable still makes sense.

Pushed under the build-breaker rule.

 tests/virsh-optparse | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/virsh-optparse b/tests/virsh-optparse
index cb0f3d4f3..1aef8d8d9 100755
--- a/tests/virsh-optparse
+++ b/tests/virsh-optparse
@@ -212,6 +212,7 @@ compare exp-err err || fail=1
 # Numeric value with invalid suffix
 cat <<\EOF > exp-err || framework_failure
 error: Scaled numeric value '42WB' for <size> option is malformed or out of range
+error: invalid argument: unknown suffix 'WB'
 EOF
 virsh -q -c $test_url setmaxmem test 42WB >out 2>err && fail=1
 test -s out && fail=1
-- 
2.12.2




More information about the libvir-list mailing list