[PATCH] tests/functional: Require 'user' netdev for ppc64 e500 test

Cédric Le Goater posted 1 patch 3 weeks, 4 days ago
tests/functional/test_ppc64_e500.py | 1 +
1 file changed, 1 insertion(+)
[PATCH] tests/functional: Require 'user' netdev for ppc64 e500 test
Posted by Cédric Le Goater 3 weeks, 4 days ago
When commit 72cdd672e18c extended the ppc64 e500 test to add network
support, it forgot to require the 'user' netdev backend. Fix that.

Fixes: 72cdd672e18c ("tests/functional: Replace the ppc64 e500 advent calendar test")
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
 tests/functional/test_ppc64_e500.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/functional/test_ppc64_e500.py b/tests/functional/test_ppc64_e500.py
index 9ce7ae6c4798..f5fcad9f6b66 100755
--- a/tests/functional/test_ppc64_e500.py
+++ b/tests/functional/test_ppc64_e500.py
@@ -20,6 +20,7 @@ class E500Test(LinuxKernelTest):
 
     def test_ppc64_e500_buildroot(self):
         self.set_machine('ppce500')
+        self.require_netdev('user')
         self.cpu = 'e5500'
 
         uimage_path = self.ASSET_BR2_E5500_UIMAGE.fetch()
-- 
2.48.1


Re: [PATCH] tests/functional: Require 'user' netdev for ppc64 e500 test
Posted by Thomas Huth 3 weeks, 2 days ago
On 08/03/2025 08.13, Cédric Le Goater wrote:
> When commit 72cdd672e18c extended the ppc64 e500 test to add network
> support, it forgot to require the 'user' netdev backend. Fix that.
> 
> Fixes: 72cdd672e18c ("tests/functional: Replace the ppc64 e500 advent calendar test")
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>   tests/functional/test_ppc64_e500.py | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/functional/test_ppc64_e500.py b/tests/functional/test_ppc64_e500.py
> index 9ce7ae6c4798..f5fcad9f6b66 100755
> --- a/tests/functional/test_ppc64_e500.py
> +++ b/tests/functional/test_ppc64_e500.py
> @@ -20,6 +20,7 @@ class E500Test(LinuxKernelTest):
>   
>       def test_ppc64_e500_buildroot(self):
>           self.set_machine('ppce500')
> +        self.require_netdev('user')
>           self.cpu = 'e5500'

Thanks, that should fix the issue that I saw in the 
"functional-cfi-ppc64-s390x" job in the gitlab CI (which uses 
--disable-slirp indeed)!

Reviewed-by: Thomas Huth <thuth@redhat.com>


Re: [PATCH] tests/functional: Require 'user' netdev for ppc64 e500 test
Posted by Bernhard Beschow 3 weeks, 3 days ago

Am 8. März 2025 07:13:28 UTC schrieb "Cédric Le Goater" <clg@redhat.com>:
>When commit 72cdd672e18c extended the ppc64 e500 test to add network
>support, it forgot to require the 'user' netdev backend. Fix that.
>
>Fixes: 72cdd672e18c ("tests/functional: Replace the ppc64 e500 advent calendar test")
>Signed-off-by: Cédric Le Goater <clg@redhat.com>
>---
> tests/functional/test_ppc64_e500.py | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/tests/functional/test_ppc64_e500.py b/tests/functional/test_ppc64_e500.py
>index 9ce7ae6c4798..f5fcad9f6b66 100755
>--- a/tests/functional/test_ppc64_e500.py
>+++ b/tests/functional/test_ppc64_e500.py
>@@ -20,6 +20,7 @@ class E500Test(LinuxKernelTest):
> 
>     def test_ppc64_e500_buildroot(self):
>         self.set_machine('ppce500')
>+        self.require_netdev('user')
>         self.cpu = 'e5500'
> 
>         uimage_path = self.ASSET_BR2_E5500_UIMAGE.fetch()

Thanks for taking care of it, Cédric.

Acked-by: Bernhard Beschow <shentey@gmail.com>
Re: [PATCH] tests/functional: Require 'user' netdev for ppc64 e500 test
Posted by Philippe Mathieu-Daudé 3 weeks, 4 days ago
On 8/3/25 08:13, Cédric Le Goater wrote:
> When commit 72cdd672e18c extended the ppc64 e500 test to add network
> support, it forgot to require the 'user' netdev backend. Fix that.
> 
> Fixes: 72cdd672e18c ("tests/functional: Replace the ppc64 e500 advent calendar test")
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>   tests/functional/test_ppc64_e500.py | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>