* [RFC PATCH] tests/functional: skip vulkan test if mssing vulkaninfo
@ 2025-03-12 19:03 Alex Bennée
2025-03-13 7:13 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennée @ 2025-03-12 19:03 UTC (permalink / raw)
To: qemu-devel; +Cc: Alex Bennée
I could have sworn I had this is a previous iteration of the patches
but I guess it got lost in a re-base. As we are going to call
vulkaninfo to probe for "bad" drivers we need to skip if the binary
isn't available.
Fixes: 9f7e493d11 (tests/functional: skip vulkan tests with nVidia)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/functional/test_aarch64_virt_gpu.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py
index f19a47f8b6..314d994a7a 100755
--- a/tests/functional/test_aarch64_virt_gpu.py
+++ b/tests/functional/test_aarch64_virt_gpu.py
@@ -115,6 +115,7 @@ def test_aarch64_virt_with_virgl_blobs_gpu(self):
self._run_virt_weston_test("glmark2-wayland -b:duration=1.0")
@skipIfMissingCommands('zstd')
+ @skipIfMissingCommands('vulkaninfo')
def test_aarch64_virt_with_vulkan_gpu(self):
self.require_device('virtio-gpu-gl-pci')
--
2.39.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] tests/functional: skip vulkan test if mssing vulkaninfo
2025-03-12 19:03 [RFC PATCH] tests/functional: skip vulkan test if mssing vulkaninfo Alex Bennée
@ 2025-03-13 7:13 ` Thomas Huth
2025-03-13 7:17 ` Thomas Huth
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Huth @ 2025-03-13 7:13 UTC (permalink / raw)
To: Alex Bennée, qemu-devel
Missing "i" in "mssing" in the subject.
On 12/03/2025 20.03, Alex Bennée wrote:
> I could have sworn I had this is a previous iteration of the patches
> but I guess it got lost in a re-base. As we are going to call
> vulkaninfo to probe for "bad" drivers we need to skip if the binary
> isn't available.
>
> Fixes: 9f7e493d11 (tests/functional: skip vulkan tests with nVidia)
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> tests/functional/test_aarch64_virt_gpu.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py
> index f19a47f8b6..314d994a7a 100755
> --- a/tests/functional/test_aarch64_virt_gpu.py
> +++ b/tests/functional/test_aarch64_virt_gpu.py
> @@ -115,6 +115,7 @@ def test_aarch64_virt_with_virgl_blobs_gpu(self):
> self._run_virt_weston_test("glmark2-wayland -b:duration=1.0")
>
> @skipIfMissingCommands('zstd')
> + @skipIfMissingCommands('vulkaninfo')
> def test_aarch64_virt_with_vulkan_gpu(self):
The check_output call in this function is already wrapped with a try-except
statement, isn't that enough already?
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] tests/functional: skip vulkan test if mssing vulkaninfo
2025-03-13 7:13 ` Thomas Huth
@ 2025-03-13 7:17 ` Thomas Huth
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2025-03-13 7:17 UTC (permalink / raw)
To: Alex Bennée, qemu-devel
On 13/03/2025 08.13, Thomas Huth wrote:
>
> Missing "i" in "mssing" in the subject.
>
> On 12/03/2025 20.03, Alex Bennée wrote:
>> I could have sworn I had this is a previous iteration of the patches
>> but I guess it got lost in a re-base. As we are going to call
>> vulkaninfo to probe for "bad" drivers we need to skip if the binary
>> isn't available.
>>
>> Fixes: 9f7e493d11 (tests/functional: skip vulkan tests with nVidia)
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>> tests/functional/test_aarch64_virt_gpu.py | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/
>> test_aarch64_virt_gpu.py
>> index f19a47f8b6..314d994a7a 100755
>> --- a/tests/functional/test_aarch64_virt_gpu.py
>> +++ b/tests/functional/test_aarch64_virt_gpu.py
>> @@ -115,6 +115,7 @@ def test_aarch64_virt_with_virgl_blobs_gpu(self):
>> self._run_virt_weston_test("glmark2-wayland -b:duration=1.0")
>> @skipIfMissingCommands('zstd')
>> + @skipIfMissingCommands('vulkaninfo')
>> def test_aarch64_virt_with_vulkan_gpu(self):
>
> The check_output call in this function is already wrapped with a try-except
> statement, isn't that enough already?
Hmm, looks like a missing vulkaninfo is giving some other kind of exception,
so we need this patch indeed. I'll queue it for my pull request today.
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-13 7:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 19:03 [RFC PATCH] tests/functional: skip vulkan test if mssing vulkaninfo Alex Bennée
2025-03-13 7:13 ` Thomas Huth
2025-03-13 7:17 ` 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).