<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qemu-iotests/136, 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/136?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qemu-iotests/136?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-01-20T20:53:22+00:00</updated>
<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>tests/qemu-iotests: Explicit usage of Python 3 (scripts with __main__)</title>
<updated>2020-02-07T14:12:48+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-01-30T16:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=903cb1bf398666014180d00711e2c1a9ffdadd5a'/>
<id>urn:sha1:903cb1bf398666014180d00711e2c1a9ffdadd5a</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 -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-4-philmd@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Test driver whitelisting in 136</title>
<updated>2019-10-28T10:22:30+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2019-09-17T09:20:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=753b31b5f3248be68f2e02b08b4796358b5e7603'/>
<id>urn:sha1:753b31b5f3248be68f2e02b08b4796358b5e7603</id>
<content type='text'>
null-aio may not be whitelisted.  Skip all test cases that require it.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Message-id: 20190917092004.999-7-mreitz@redhat.com
Reviewed-by: Andrey Shinkevich &lt;andrey.shinkevich@virtuozzo.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Set read-zeroes on in null block driver for Valgrind</title>
<updated>2019-07-19T11:19:09+00:00</updated>
<author>
<name>Andrey Shinkevich</name>
</author>
<published>2019-07-15T16:07:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a6862418fec40727b392c86dc13d9ec980efcb15'/>
<id>urn:sha1:a6862418fec40727b392c86dc13d9ec980efcb15</id>
<content type='text'>
The Valgrind tool reports about the uninitialised buffer 'buf'
instantiated on the stack of the function guess_disk_lchs().
Pass 'read-zeroes=on' to the null block driver to make it deterministic.
The output of the tests 051, 186 and 227 now includes the parameter
'read-zeroes'. So, the benchmark output files are being changed too.

Suggested-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Andrey Shinkevich &lt;andrey.shinkevich@virtuozzo.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Use // for Python integer division</title>
<updated>2018-10-31T00:11:52+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2018-10-22T13:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9a3a9a636eaf207816891f504b569b8d674987aa'/>
<id>urn:sha1:9a3a9a636eaf207816891f504b569b8d674987aa</id>
<content type='text'>
In Python 3, / is always a floating-point division.  We usually do not
want this, and as Python 2.7 understands // as well, change all integer
divisions to use that.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Reviewed-by: Cleber Rosa &lt;crosa@redhat.com&gt;
Message-Id: &lt;20181022135307.14398-5-mreitz@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: futurize -f lib2to3.fixes.fix_has_key</title>
<updated>2018-06-08T17:39:24+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2018-06-08T12:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d7a4228ebb0150e4c97a19077f3fac81d843e2c3'/>
<id>urn:sha1:d7a4228ebb0150e4c97a19077f3fac81d843e2c3</id>
<content type='text'>
Change "dict.has_key(key)" to "key in dict"

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f lib2to3.fixes.fix_has_key $py

Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20180608122952.2009-5-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Mark all tests executable</title>
<updated>2018-03-09T14:40:07+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2018-03-05T16:18:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=990dc39cfa9b72fbe743a850db5542870caf7e05'/>
<id>urn:sha1:990dc39cfa9b72fbe743a850db5542870caf7e05</id>
<content type='text'>
The majority of our iotests have the executable bit set; fix the
few outliers for consistency.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20180305161824.7188-1-eblake@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Make 136 less flaky</title>
<updated>2017-11-14T17:06:25+00:00</updated>
<author>
<name>Max Reitz</name>
</author>
<published>2017-11-09T20:30:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=19026817f71c698d1acb9c85bf5544b799fc5c2c'/>
<id>urn:sha1:19026817f71c698d1acb9c85bf5544b799fc5c2c</id>
<content type='text'>
136 executes some AIO requests without a final aio_flush; then it
advances the virtual clock and thus expects the last access time of the
device to be less than the current time when queried (i.e. idle_time_ns
to be greater than 0).  However, without the aio_flush, some requests
may be settled after the clock_step invocation.  In that case,
idle_time_ns would be 0 and the test fails.

Fix this by adding an aio_flush if any AIO request other than some other
aio_flush has been executed.

Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-id: 20171109203025.27493-6-mreitz@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/null: Remove 'filename' option</title>
<updated>2017-08-08T13:19:16+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2017-08-04T10:44:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=809eb70ed6cfbfb6c198a25aed036849cc11944d'/>
<id>urn:sha1:809eb70ed6cfbfb6c198a25aed036849cc11944d</id>
<content type='text'>
This option was only added to allow 'null-co://' and 'null-aio://' as
filenames, its value never served any actual purpose and was ignored.
Nevertheless it was accepted as '-drive driver=null,filename=foo'.

The correct way to enable the protocol prefixes (and that without adding
a useless -drive option) is implementing .bdrv_parse_filename. This is
what this patch does.

Technically, this is an incompatible change, but the null block driver
is only used for benchmarking, testing and debugging, and an option
without effect isn't likely to be used by anyone anyway, so no bad
effects are to be expected.

Reported-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Jeff Cody &lt;jcody@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-iotests: Fix regression in 136 on aio_read invalid</title>
<updated>2016-05-19T14:56:58+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2016-05-16T16:43:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=37546ff28fb89744ebf2223db22cbc253592abe1'/>
<id>urn:sha1:37546ff28fb89744ebf2223db22cbc253592abe1</id>
<content type='text'>
Commit 093ea232 removed the ability for aio_read and aio_write
to artificially inflate the invalid statistics counters for
block devices, since it no longer flags unaligned offset or
length.  Add 'aio_read -i' and 'aio_write -i' to restore
the ability, and update test 136 to use it.

Reported-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 1463416983-28318-4-git-send-email-eblake@redhat.com
Signed-off-by: Max Reitz &lt;mreitz@redhat.com&gt;
</content>
</entry>
</feed>
