<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/194, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/194?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/194?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-03-22T09:14:36+00:00</updated>
<entry>
<title>iotests: replace unchecked calls to qemu_img_pipe()</title>
<updated>2022-03-22T09:14:36+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2022-03-21T20:16:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3d53818ff70ebbb09288c494080cf6717e1713ce'/>
<id>urn:sha1:3d53818ff70ebbb09288c494080cf6717e1713ce</id>
<content type='text'>
qemu_img_pipe() discards the return code from qemu-img in favor of
returning just its output. Some tests using this function don't save,
log, or check the output either, though, which is unsafe.

Replace all of these calls with a checked version.

Tests affected are 194, 202, 203, 234, 262, and 303.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220321201618.903471-13-jsnow@redhat.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: remove 'dirty-bitmaps' field from 'BlockInfo' struct</title>
<updated>2021-03-18T09:22:55+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-19T19:22:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e67d8e2928200e24ecb47c7be3ea8270077f2996'/>
<id>urn:sha1:e67d8e2928200e24ecb47c7be3ea8270077f2996</id>
<content type='text'>
The same data is available in the 'BlockDeviceInfo' struct.

Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: define group in each iotest</title>
<updated>2021-01-20T20:53:22+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2021-01-16T13:44:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9dd003a99842d1d82c336e45c5cce656149de382'/>
<id>urn:sha1:9dd003a99842d1d82c336e45c5cce656149de382</id>
<content type='text'>
We are going to drop group file. Define group in tests as a preparatory
step.

The patch is generated by

    cd tests/qemu-iotests

    grep '^[0-9]\{3\} ' group | while read line; do
        file=$(awk '{print $1}' &lt;&lt;&lt; "$line");
        groups=$(sed -e 's/^... //' &lt;&lt;&lt; "$line");
        awk "NR==2{print \"# group: $groups\"}1" $file &gt; tmp;
        cat tmp &gt; $file;
    done

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20210116134424.82867-7-vsementsov@virtuozzo.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Merge FilePaths and FilePath</title>
<updated>2020-09-15T09:05:12+00:00</updated>
<author>
<name>Nir Soffer</name>
</author>
<published>2020-08-28T23:21:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3192fad7f789404dce6041d01400db3c16a0b5d1'/>
<id>urn:sha1:3192fad7f789404dce6041d01400db3c16a0b5d1</id>
<content type='text'>
FilePath creates now one temporary file:

    with FilePath("a") as a:

Or more:

    with FilePath("a", "b", "c") as (a, b, c):

This is also the behavior of the file_path() helper, used by some of the
tests. Now we have only 2 helpers for creating temporary files instead
of 3.

Signed-off-by: Nir Soffer &lt;nsoffer@redhat.com&gt;
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20200828232152.205833-5-nsoffer@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Support varargs syntax in FilePaths</title>
<updated>2020-09-15T09:05:12+00:00</updated>
<author>
<name>Nir Soffer</name>
</author>
<published>2020-08-28T23:21:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a242b19e80faa95fd5856fca2d4115e853d465b1'/>
<id>urn:sha1:a242b19e80faa95fd5856fca2d4115e853d465b1</id>
<content type='text'>
Accept variable number of names instead of a sequence:

    with FilePaths("a", "b", "c") as (a, b, c):

The disadvantage is that base_dir must be used as kwarg:

    with FilePaths("a", "b", base_dir=soc_dir) as (sock1, sock2):

But this is more clear and calling optional argument as positional
arguments is bad idea anyway.

Signed-off-by: Nir Soffer &lt;nsoffer@redhat.com&gt;
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20200828232152.205833-4-nsoffer@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: 194: wait for migration completion on target too</title>
<updated>2020-06-09T22:05:50+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2020-06-04T08:33:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=93d487807bf8fb9a5867d1a0a77d7afbc26e6c5c'/>
<id>urn:sha1:93d487807bf8fb9a5867d1a0a77d7afbc26e6c5c</id>
<content type='text'>
It is possible, that shutdown on target occurs earlier than migration
finish. In this case we crash in bdrv_release_dirty_bitmap_locked()
on assertion "assert(!bdrv_dirty_bitmap_busy(bitmap));" as we do have
busy bitmap, as bitmap migration is ongoing.

We'll fix bitmap migration to gracefully cancel on early shutdown soon.
Now let's fix iotest 194 to wait migration completion before shutdown.

Note that in this test dest_vm.shutdown() is called implicitly, as vms
used as context-providers, see __exit__() method of QEMUMachine class.

Actually, not waiting migration finish is a wrong thing, but the test
started to crash after commit ae00aa239847682
"iotests: 194: test also migration of dirty bitmap", which added dirty
bitmaps here. So, Fixes: tag won't hurt.

Fixes: ae00aa2398476824f0eca80461da215e7cdc1c3b
Reported-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Tested-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
[eblake: grammar tweak]
Message-Id: &lt;20200604083341.26978-1-vsementsov@virtuozzo.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: 194: test also migration of dirty bitmap</title>
<updated>2020-05-28T18:15:22+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2020-05-21T22:06:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ae00aa2398476824f0eca80461da215e7cdc1c3b'/>
<id>urn:sha1:ae00aa2398476824f0eca80461da215e7cdc1c3b</id>
<content type='text'>
Test that dirty bitmap migration works when we deal with mirror.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20200521220648.3255-5-vsementsov@virtuozzo.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: add script_initialize</title>
<updated>2020-05-05T11:17:36+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2020-03-31T00:00:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7d8140595f1e131935ba1c98a55af7d066660707'/>
<id>urn:sha1:7d8140595f1e131935ba1c98a55af7d066660707</id>
<content type='text'>
Like script_main, but doesn't require a single point of entry.
Replace all existing initialization sections with this drop-in replacement.

This brings debug support to all existing script-style iotests.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-Id: &lt;20200331000014.11581-12-jsnow@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
[mreitz: Give 274 the same treatment]
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>tests/qemu-iotests: Explicit usage of Python3 (scripts without __main__)</title>
<updated>2020-02-07T14:15:16+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-01-30T16:32:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7c4775260807f1428484a5cebc7bc360c46a872d'/>
<id>urn:sha1:7c4775260807f1428484a5cebc7bc360c46a872d</id>
<content type='text'>
Use the program search path to find the Python 3 interpreter.

Patch created mechanically by running:

  $ sed -i "s,^#\!/usr/bin/\(env\ \)\?python$,#\!/usr/bin/env python3," \
      $(git grep -lF '#!/usr/bin/env python' \
      | xargs grep -L 'if __name__.*__main__')

Reported-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Suggested-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Suggested-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Acked-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20200130163232.10446-11-philmd@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests/194: Create sockets in $SOCK_DIR</title>
<updated>2019-10-28T10:22:31+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-10-17T13:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4b4d34f4f79f16f1135705161bb2c2991df9049e'/>
<id>urn:sha1:4b4d34f4f79f16f1135705161bb2c2991df9049e</id>
<content type='text'>
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20191017133155.5327-15-mreitz@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
</feed>
