From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Jeff Cody <jcody@redhat.com>, Kevin Wolf <kwolf@redhat.com>,
Max Reitz <mreitz@redhat.com>,
qemu-block@nongnu.org, jsnow@redhat.com, qemu-stable@nongnu.org,
eblake@redhat.com
Subject: [Qemu-devel] [PATCH v2 2/2] iotests: Add regression test for drive-backup cluster size error
Date: Thu, 19 May 2016 09:25:47 +0800 [thread overview]
Message-ID: <1463621147-12285-3-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1463621147-12285-1-git-send-email-famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
tests/qemu-iotests/055 | 13 +++++++++++++
tests/qemu-iotests/055.out | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/055 b/tests/qemu-iotests/055
index c8e3578..7f990c2 100755
--- a/tests/qemu-iotests/055
+++ b/tests/qemu-iotests/055
@@ -451,5 +451,18 @@ class TestSingleTransaction(iotests.QMPTestCase):
self.assert_qmp(result, 'error/class', 'GenericError')
self.assert_no_active_block_jobs()
+class TestNullToNull(iotests.QMPTestCase):
+
+ def test_backup(self):
+ """blockdev-backup from null-co:// to null-co:// shouldn't leak job"""
+ self.vm = iotests.VM().\
+ add_drive_raw("id=drive0,if=none,format=raw,file=null-co://"). \
+ add_drive_raw("id=drive1,if=none,format=raw,file=null-co://")
+ self.vm.launch()
+ result = self.vm.qmp('blockdev-backup', device='drive0',
+ target='drive1', sync='full')
+ self.assert_qmp(result, 'error/class', 'GenericError')
+ self.vm.shutdown()
+
if __name__ == '__main__':
iotests.main(supported_fmts=['raw', 'qcow2'])
diff --git a/tests/qemu-iotests/055.out b/tests/qemu-iotests/055.out
index 42314e9..4fd1c2d 100644
--- a/tests/qemu-iotests/055.out
+++ b/tests/qemu-iotests/055.out
@@ -1,5 +1,5 @@
-........................
+.........................
----------------------------------------------------------------------
-Ran 24 tests
+Ran 25 tests
OK
--
2.8.2
next prev parent reply other threads:[~2016-05-19 1:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 1:25 [Qemu-devel] [PATCH v2 0/2] backup: Fail early if cannot determine cluster size Fam Zheng
2016-05-19 1:25 ` [Qemu-devel] [PATCH v2 1/2] " Fam Zheng
2016-05-24 7:45 ` Kevin Wolf
2016-05-19 1:25 ` Fam Zheng [this message]
2016-05-24 7:47 ` [Qemu-devel] [PATCH v2 2/2] iotests: Add regression test for drive-backup cluster size error Kevin Wolf
2016-05-24 5:11 ` [Qemu-devel] [Qemu-stable] [PATCH v2 0/2] backup: Fail early if cannot determine cluster size Fam Zheng
2016-05-24 13:40 ` [Qemu-devel] " Jeff Cody
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463621147-12285-3-git-send-email-famz@redhat.com \
--to=famz@redhat.com \
--cc=eblake@redhat.com \
--cc=jcody@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).