[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 19/22] iotests: add VM.test_launcn()
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [PATCH 19/22] iotests: add VM.test_launcn() |
Date: |
Tue, 22 Mar 2016 12:25:29 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/15/2016 02:04 PM, Vladimir Sementsov-Ogievskiy wrote:
in subject: s/launcn/launch/
> Test vm can launch and print output in case of fail. This function is
> needed for testing erroneous cases
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> tests/qemu-iotests/iotests.py | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>
> + def test_launch(self):
> + '''Launch the VM, an error is expected'''
> + try:
> + self.launch()
> + except:
> + self._popen.wait()
> + regex = re.compile(r"qemu-system-\w+")
> + print "Test launch failed: %d" % self._popen.returncode
> + print "--- qemu output ---"
> + for line in open(self._qemu_log_path):
> + #filter qtest comments
> + if not "] OPENED" in line:
> + print regex.sub("qemu-system-*", line)
> + print "--- end qemu output ---"
> + return False
> +
> + print "Tast launch successed!"
What? Did you mean "Test launch succeeded" ?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v5 00/22] qcow2: persistent dirty bitmaps, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 01/22] block: Add two dirty bitmap getters, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 02/22] block: fix bdrv_dirty_bitmap_granularity signature, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 22/22] qcow2-dirty-bitmap: add EXTRA_DATA_COMPATIBLE flag, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 19/22] iotests: add VM.test_launcn(), Vladimir Sementsov-Ogievskiy, 2016/03/15
- Re: [Qemu-block] [PATCH 19/22] iotests: add VM.test_launcn(),
Eric Blake <=
- [Qemu-block] [PATCH 03/22] iotests: maintain several vms in test, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 04/22] iotests: add default node-name, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 21/22] qcow2-dirty-bitmap: add AUTO flag, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 05/22] qapi: add md5 checksum of last dirty bitmap level to query-block, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 18/22] qcow2-dirty-bitmaps: disallow stroing bitmap to other bs, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 14/22] block: add bdrv_load_dirty_bitmap(), Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 13/22] block: store persistent dirty bitmaps, Vladimir Sementsov-Ogievskiy, 2016/03/15
- [Qemu-block] [PATCH 17/22] qcow2-dirty-bitmap: add IN_USE flag, Vladimir Sementsov-Ogievskiy, 2016/03/15