* [PATCH] doc: add missing 'Asset' type in function test doc
@ 2025-03-06 6:07 Aditya Gupta
2025-03-06 6:44 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Gupta @ 2025-03-06 6:07 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Hajnoczi
Seems 'Asset' got missed in the documentation by mistake.
Also fix the one spellcheck issue pointed by spellcheck
Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
---
docs/devel/testing/functional.rst | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/functional.rst
index ecc738922b7c..50fca2a0291e 100644
--- a/docs/devel/testing/functional.rst
+++ b/docs/devel/testing/functional.rst
@@ -251,7 +251,7 @@ Many functional tests download assets (e.g. Linux kernels, initrds,
firmware images, etc.) from the internet to be able to run tests with
them. This imposes additional challenges to the test framework.
-First there is the the problem that some people might not have an
+First there is the problem that some people might not have an
unconstrained internet connection, so such tests should not be run by
default when running ``make check``. To accomplish this situation,
the tests that download files should only be added to the "thorough"
@@ -274,7 +274,9 @@ the tests are run. This pre-caching is done with the qemu_test.Asset
class. To use it in your test, declare an asset in your test class with
its URL and SHA256 checksum like this::
- ASSET_somename = (
+ from qemu_test import Asset
+
+ ASSET_somename = Asset(
('https://www.qemu.org/assets/images/qemu_head_200.png'),
'34b74cad46ea28a2966c1d04e102510daf1fd73e6582b6b74523940d5da029dd')
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] doc: add missing 'Asset' type in function test doc
2025-03-06 6:07 [PATCH] doc: add missing 'Asset' type in function test doc Aditya Gupta
@ 2025-03-06 6:44 ` Philippe Mathieu-Daudé
2025-03-06 7:07 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-03-06 6:44 UTC (permalink / raw)
To: Aditya Gupta, qemu-devel; +Cc: Stefan Hajnoczi, Thomas Huth
On 6/3/25 07:07, Aditya Gupta wrote:
> Seems 'Asset' got missed in the documentation by mistake.
>
> Also fix the one spellcheck issue pointed by spellcheck
>
> Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
> ---
> docs/devel/testing/functional.rst | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/functional.rst
> index ecc738922b7c..50fca2a0291e 100644
> --- a/docs/devel/testing/functional.rst
> +++ b/docs/devel/testing/functional.rst
> @@ -251,7 +251,7 @@ Many functional tests download assets (e.g. Linux kernels, initrds,
> firmware images, etc.) from the internet to be able to run tests with
> them. This imposes additional challenges to the test framework.
>
> -First there is the the problem that some people might not have an
> +First there is the problem that some people might not have an
> unconstrained internet connection, so such tests should not be run by
> default when running ``make check``. To accomplish this situation,
> the tests that download files should only be added to the "thorough"
> @@ -274,7 +274,9 @@ the tests are run. This pre-caching is done with the qemu_test.Asset
> class. To use it in your test, declare an asset in your test class with
> its URL and SHA256 checksum like this::
>
> - ASSET_somename = (
> + from qemu_test import Asset
> +
> + ASSET_somename = Asset(
> ('https://www.qemu.org/assets/images/qemu_head_200.png'),
> '34b74cad46ea28a2966c1d04e102510daf1fd73e6582b6b74523940d5da029dd')
>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] doc: add missing 'Asset' type in function test doc
2025-03-06 6:44 ` Philippe Mathieu-Daudé
@ 2025-03-06 7:07 ` Thomas Huth
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2025-03-06 7:07 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, Aditya Gupta, qemu-devel; +Cc: Stefan Hajnoczi
On 06/03/2025 07.44, Philippe Mathieu-Daudé wrote:
> On 6/3/25 07:07, Aditya Gupta wrote:
>> Seems 'Asset' got missed in the documentation by mistake.
>>
>> Also fix the one spellcheck issue pointed by spellcheck
>>
>> Signed-off-by: Aditya Gupta <adityag@linux.ibm.com>
>> ---
>> docs/devel/testing/functional.rst | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/
>> functional.rst
>> index ecc738922b7c..50fca2a0291e 100644
>> --- a/docs/devel/testing/functional.rst
>> +++ b/docs/devel/testing/functional.rst
>> @@ -251,7 +251,7 @@ Many functional tests download assets (e.g. Linux
>> kernels, initrds,
>> firmware images, etc.) from the internet to be able to run tests with
>> them. This imposes additional challenges to the test framework.
>> -First there is the the problem that some people might not have an
>> +First there is the problem that some people might not have an
>> unconstrained internet connection, so such tests should not be run by
>> default when running ``make check``. To accomplish this situation,
>> the tests that download files should only be added to the "thorough"
>> @@ -274,7 +274,9 @@ the tests are run. This pre-caching is done with the
>> qemu_test.Asset
>> class. To use it in your test, declare an asset in your test class with
>> its URL and SHA256 checksum like this::
>> - ASSET_somename = (
>> + from qemu_test import Asset
>> +
>> + ASSET_somename = Asset(
>> ('https://www.qemu.org/assets/images/qemu_head_200.png'),
>> '34b74cad46ea28a2966c1d04e102510daf1fd73e6582b6b74523940d5da029dd')
>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Thanks, queued!
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-06 7:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06 6:07 [PATCH] doc: add missing 'Asset' type in function test doc Aditya Gupta
2025-03-06 6:44 ` Philippe Mathieu-Daudé
2025-03-06 7:07 ` Thomas Huth
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).