]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
doc: add missing 'Asset' type in function test doc
authorAditya Gupta <adityag@linux.ibm.com>
Thu, 6 Mar 2025 06:07:06 +0000 (11:37 +0530)
committerThomas Huth <thuth@redhat.com>
Fri, 7 Mar 2025 08:24:00 +0000 (09:24 +0100)
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>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250306060706.1982992-1-adityag@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/devel/testing/functional.rst

index bcb5509512e7b9e226bd037a45943128ab6c649f..a9fa45eac1f69bef57a231565e000d0f125d0357 100644 (file)
@@ -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')