Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
qemu
tests-Fix-block-tests-to-be-compatible-w.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tests-Fix-block-tests-to-be-compatible-w.patch of Package qemu
From: Bruce Rogers <brogers@suse.com> Date: Tue, 15 Oct 2019 11:16:14 -0600 Subject: tests: Fix block tests to be compatible with membarrier configuration The use of membarriers collides with the block test's practice of SIGKILLing test vm's. Have them quit politely. Tests: 130, 153 - and though test 161 seems to have the same issue, it is not yet fixed, but just marked here as possibly needing a fix. Signed-off-by: Bruce Rogers <brogers@suse.com> --- tests/qemu-iotests/130 | 6 ++++-- tests/qemu-iotests/130.out | 2 ++ tests/qemu-iotests/153 | 6 ++++-- tests/qemu-iotests/153.out | 4 ++++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/130 b/tests/qemu-iotests/130 index 77ad2aa13a06094f26d2c8991e48..fd84a4c77d192e15ee961b07994b 100755 --- a/tests/qemu-iotests/130 +++ b/tests/qemu-iotests/130 @@ -64,7 +64,8 @@ echo _launch_qemu -drive id=testdisk,file="$TEST_IMG",backing.file.filename="$TEST_IMG.base" _send_qemu_cmd $QEMU_HANDLE "commit testdisk" "(qemu)" _send_qemu_cmd $QEMU_HANDLE '' '(qemu)' -_cleanup_qemu +_send_qemu_cmd $QEMU_HANDLE 'quit' '' +wait=1 _cleanup_qemu _img_info | _filter_img_info # Make sure that if there was a backing file that was just overridden on the @@ -73,7 +74,8 @@ _make_test_img -F raw -b "$TEST_IMG.orig" 64M _launch_qemu -drive id=testdisk,file="$TEST_IMG",backing.file.filename="$TEST_IMG.base",backing.driver=$IMGFMT _send_qemu_cmd $QEMU_HANDLE "commit testdisk" "(qemu)" _send_qemu_cmd $QEMU_HANDLE '' '(qemu)' -_cleanup_qemu +_send_qemu_cmd $QEMU_HANDLE 'quit' '' +wait=1 _cleanup_qemu _img_info | _filter_img_info echo diff --git a/tests/qemu-iotests/130.out b/tests/qemu-iotests/130.out index e45285ccc311522481ac1b27ba99..7168bdf70c3eb32d4de0d28bb947 100644 --- a/tests/qemu-iotests/130.out +++ b/tests/qemu-iotests/130.out @@ -11,6 +11,7 @@ virtual size: 64 MiB (67108864 bytes) QEMU X.Y.Z monitor - type 'help' for more information (qemu) commit testdisk (qemu) +(qemu) quit image: TEST_DIR/t.IMGFMT file format: IMGFMT virtual size: 64 MiB (67108864 bytes) @@ -18,6 +19,7 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t QEMU X.Y.Z monitor - type 'help' for more information (qemu) commit testdisk (qemu) +(qemu) quit image: TEST_DIR/t.IMGFMT file format: IMGFMT virtual size: 64 MiB (67108864 bytes) diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 index c969a1a16ff8382b9bb69252f6de..39d6da725bff3932a7cb88acff8e 100755 --- a/tests/qemu-iotests/153 +++ b/tests/qemu-iotests/153 @@ -206,7 +206,8 @@ _send_qemu_cmd $QEMU_HANDLE \ 'return' _run_cmd $QEMU_IMG commit -b "${TEST_IMG}.b" "${TEST_IMG}.c" -_cleanup_qemu +_send_qemu_cmd $QEMU_HANDLE "{ 'execute': 'quit' }" '' +wait=1 _cleanup_qemu _launch_qemu @@ -258,7 +259,8 @@ _send_qemu_cmd $QEMU_HANDLE \ _run_cmd $QEMU_IO "${TEST_IMG}" -c 'write 0 512' -_cleanup_qemu +_send_qemu_cmd $QEMU_HANDLE "{ 'execute': 'quit' }" '' +wait=1 _cleanup_qemu echo echo "== Detecting -U and force-share conflicts ==" diff --git a/tests/qemu-iotests/153.out b/tests/qemu-iotests/153.out index f7464dd8d345a853f7b64a67c6d0..8bc14f6abf94662473d6d93b5672 100644 --- a/tests/qemu-iotests/153.out +++ b/tests/qemu-iotests/153.out @@ -421,6 +421,8 @@ Is another process using the image [TEST_DIR/t.qcow2]? _qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c { 'execute': 'qmp_capabilities' } {"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} +{"return": {}} Adding drive { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } } {"return": "OKrn"} @@ -454,6 +456,8 @@ Closing the other {"return": ""} _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512 +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} == Detecting -U and force-share conflicts ==
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor