* [PATCH] tests/functional: Fix reverse_debugging asset precaching
@ 2025-08-27 0:10 Gustavo Romero
2025-08-27 2:36 ` Richard Henderson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Gustavo Romero @ 2025-08-27 0:10 UTC (permalink / raw)
To: qemu-devel, alex.bennee, thuth; +Cc: qemu-arm, gustavo.romero
This commit fixes the asset precaching in the reverse_debugging test on
aarch64.
QemuBaseTest.main() precaches assets (kernel, rootfs, DT blobs, etc.)
that are defined in variables with the ASSET_ prefix. This works because
it ultimately calls Asset.precache_test(), which relies on introspection
to locate these variables.
If an asset variable is not named with the ASSET_ prefix, precache_test
cannot find the asset and precaching silently fails. Hence, fix the
asset precaching by fixing the asset variable name.
Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
---
tests/functional/test_aarch64_reverse_debug.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/functional/test_aarch64_reverse_debug.py b/tests/functional/test_aarch64_reverse_debug.py
index 58d4532835..8bc91ccfde 100755
--- a/tests/functional/test_aarch64_reverse_debug.py
+++ b/tests/functional/test_aarch64_reverse_debug.py
@@ -21,7 +21,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
REG_PC = 32
- KERNEL_ASSET = Asset(
+ ASSET_KERNEL = Asset(
('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
'7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
@@ -30,7 +30,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
def test_aarch64_virt(self):
self.set_machine('virt')
self.cpu = 'cortex-a53'
- kernel_path = self.KERNEL_ASSET.fetch()
+ kernel_path = self.ASSET_KERNEL.fetch()
self.reverse_debugging(args=('-kernel', kernel_path))
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional: Fix reverse_debugging asset precaching
2025-08-27 0:10 [PATCH] tests/functional: Fix reverse_debugging asset precaching Gustavo Romero
@ 2025-08-27 2:36 ` Richard Henderson
2025-08-27 5:35 ` Manos Pitsidianakis
2025-08-27 9:50 ` Daniel P. Berrangé
2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2025-08-27 2:36 UTC (permalink / raw)
To: Gustavo Romero, qemu-devel, alex.bennee, thuth; +Cc: qemu-arm
On 8/27/25 10:10, Gustavo Romero wrote:
> This commit fixes the asset precaching in the reverse_debugging test on
> aarch64.
>
> QemuBaseTest.main() precaches assets (kernel, rootfs, DT blobs, etc.)
> that are defined in variables with the ASSET_ prefix. This works because
> it ultimately calls Asset.precache_test(), which relies on introspection
> to locate these variables.
>
> If an asset variable is not named with the ASSET_ prefix, precache_test
> cannot find the asset and precaching silently fails. Hence, fix the
> asset precaching by fixing the asset variable name.
>
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
> ---
> tests/functional/test_aarch64_reverse_debug.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional: Fix reverse_debugging asset precaching
2025-08-27 0:10 [PATCH] tests/functional: Fix reverse_debugging asset precaching Gustavo Romero
2025-08-27 2:36 ` Richard Henderson
@ 2025-08-27 5:35 ` Manos Pitsidianakis
2025-08-27 9:50 ` Daniel P. Berrangé
2 siblings, 0 replies; 4+ messages in thread
From: Manos Pitsidianakis @ 2025-08-27 5:35 UTC (permalink / raw)
To: Gustavo Romero; +Cc: qemu-devel, alex.bennee, thuth, qemu-arm
[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]
On Wed, Aug 27, 2025 at 3:12 AM Gustavo Romero <gustavo.romero@linaro.org>
wrote:
>
> This commit fixes the asset precaching in the reverse_debugging test on
> aarch64.
>
> QemuBaseTest.main() precaches assets (kernel, rootfs, DT blobs, etc.)
> that are defined in variables with the ASSET_ prefix. This works because
> it ultimately calls Asset.precache_test(), which relies on introspection
> to locate these variables.
>
> If an asset variable is not named with the ASSET_ prefix, precache_test
> cannot find the asset and precaching silently fails. Hence, fix the
> asset precaching by fixing the asset variable name.
>
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
> ---
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
> tests/functional/test_aarch64_reverse_debug.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/functional/test_aarch64_reverse_debug.py
b/tests/functional/test_aarch64_reverse_debug.py
> index 58d4532835..8bc91ccfde 100755
> --- a/tests/functional/test_aarch64_reverse_debug.py
> +++ b/tests/functional/test_aarch64_reverse_debug.py
> @@ -21,7 +21,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
>
> REG_PC = 32
>
> - KERNEL_ASSET = Asset(
> + ASSET_KERNEL = Asset(
> ('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
> 'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
>
'7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
> @@ -30,7 +30,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
> def test_aarch64_virt(self):
> self.set_machine('virt')
> self.cpu = 'cortex-a53'
> - kernel_path = self.KERNEL_ASSET.fetch()
> + kernel_path = self.ASSET_KERNEL.fetch()
> self.reverse_debugging(args=('-kernel', kernel_path))
>
>
> --
> 2.34.1
>
>
[-- Attachment #2: Type: text/html, Size: 2571 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/functional: Fix reverse_debugging asset precaching
2025-08-27 0:10 [PATCH] tests/functional: Fix reverse_debugging asset precaching Gustavo Romero
2025-08-27 2:36 ` Richard Henderson
2025-08-27 5:35 ` Manos Pitsidianakis
@ 2025-08-27 9:50 ` Daniel P. Berrangé
2 siblings, 0 replies; 4+ messages in thread
From: Daniel P. Berrangé @ 2025-08-27 9:50 UTC (permalink / raw)
To: Gustavo Romero; +Cc: qemu-devel, alex.bennee, thuth, qemu-arm, qemu-stable
CC stable
On Wed, Aug 27, 2025 at 12:10:08AM +0000, Gustavo Romero wrote:
> This commit fixes the asset precaching in the reverse_debugging test on
> aarch64.
>
> QemuBaseTest.main() precaches assets (kernel, rootfs, DT blobs, etc.)
> that are defined in variables with the ASSET_ prefix. This works because
> it ultimately calls Asset.precache_test(), which relies on introspection
> to locate these variables.
>
> If an asset variable is not named with the ASSET_ prefix, precache_test
> cannot find the asset and precaching silently fails. Hence, fix the
> asset precaching by fixing the asset variable name.
>
> Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
> ---
> tests/functional/test_aarch64_reverse_debug.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/functional/test_aarch64_reverse_debug.py b/tests/functional/test_aarch64_reverse_debug.py
> index 58d4532835..8bc91ccfde 100755
> --- a/tests/functional/test_aarch64_reverse_debug.py
> +++ b/tests/functional/test_aarch64_reverse_debug.py
> @@ -21,7 +21,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
>
> REG_PC = 32
>
> - KERNEL_ASSET = Asset(
> + ASSET_KERNEL = Asset(
> ('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
> 'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
> '7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
> @@ -30,7 +30,7 @@ class ReverseDebugging_AArch64(ReverseDebugging):
> def test_aarch64_virt(self):
> self.set_machine('virt')
> self.cpu = 'cortex-a53'
> - kernel_path = self.KERNEL_ASSET.fetch()
> + kernel_path = self.ASSET_KERNEL.fetch()
> self.reverse_debugging(args=('-kernel', kernel_path))
>
>
> --
> 2.34.1
>
>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-27 9:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 0:10 [PATCH] tests/functional: Fix reverse_debugging asset precaching Gustavo Romero
2025-08-27 2:36 ` Richard Henderson
2025-08-27 5:35 ` Manos Pitsidianakis
2025-08-27 9:50 ` Daniel P. Berrangé
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).