diff mbox series

[10/10] tests: update smbios pytest

Message ID 20240816154658.1866186-11-raymond.mao@linaro.org
State Changes Requested
Delegated to: Tom Rini
Headers show
Series SMBIOS improvements | expand

Commit Message

Raymond Mao Aug. 16, 2024, 3:46 p.m. UTC
Update the expected test result to align with the smbios library changes.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
---
 test/py/tests/test_smbios.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Aug. 19, 2024, 10:19 p.m. UTC | #1
On Fri, Aug 16, 2024 at 08:46:53AM -0700, Raymond Mao wrote:
> Update the expected test result to align with the smbios library changes.
> 
> Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> ---
>  test/py/tests/test_smbios.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/py/tests/test_smbios.py b/test/py/tests/test_smbios.py
> index 82b0b689830..ffa4ea795ec 100644
> --- a/test/py/tests/test_smbios.py
> +++ b/test/py/tests/test_smbios.py
> @@ -32,7 +32,7 @@ def test_cmd_smbios_sandbox(u_boot_console):
>      """Run the smbios command on the sandbox"""
>      output = u_boot_console.run_command('smbios')
>      assert 'DMI type 0,' in output
> -    assert 'String 1: U-Boot' in output
> +    assert 'Vendor: U-Boot' in output
>      assert 'DMI type 1,' in output
>      assert 'Manufacturer: sandbox' in output
>      assert 'DMI type 2,' in output

This needs to be done with the change, not by itself.
Raymond Mao Oct. 21, 2024, 3:23 p.m. UTC | #2
Hi Tom,

On Mon, 19 Aug 2024 at 18:19, Tom Rini <trini@konsulko.com> wrote:

> On Fri, Aug 16, 2024 at 08:46:53AM -0700, Raymond Mao wrote:
> > Update the expected test result to align with the smbios library changes.
> >
> > Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> > ---
> >  test/py/tests/test_smbios.py | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/test/py/tests/test_smbios.py b/test/py/tests/test_smbios.py
> > index 82b0b689830..ffa4ea795ec 100644
> > --- a/test/py/tests/test_smbios.py
> > +++ b/test/py/tests/test_smbios.py
> > @@ -32,7 +32,7 @@ def test_cmd_smbios_sandbox(u_boot_console):
> >      """Run the smbios command on the sandbox"""
> >      output = u_boot_console.run_command('smbios')
> >      assert 'DMI type 0,' in output
> > -    assert 'String 1: U-Boot' in output
> > +    assert 'Vendor: U-Boot' in output
> >      assert 'DMI type 1,' in output
> >      assert 'Manufacturer: sandbox' in output
> >      assert 'DMI type 2,' in output
>
> This needs to be done with the change, not by itself.
>
> Sorry but I didn't get what you mean... but shall I exclude this one from
the series?

Regards,
Raymond
Tom Rini Oct. 21, 2024, 5:23 p.m. UTC | #3
On Mon, Oct 21, 2024 at 11:23:05AM -0400, Raymond Mao wrote:
> Hi Tom,
> 
> On Mon, 19 Aug 2024 at 18:19, Tom Rini <trini@konsulko.com> wrote:
> 
> > On Fri, Aug 16, 2024 at 08:46:53AM -0700, Raymond Mao wrote:
> > > Update the expected test result to align with the smbios library changes.
> > >
> > > Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> > > ---
> > >  test/py/tests/test_smbios.py | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/test/py/tests/test_smbios.py b/test/py/tests/test_smbios.py
> > > index 82b0b689830..ffa4ea795ec 100644
> > > --- a/test/py/tests/test_smbios.py
> > > +++ b/test/py/tests/test_smbios.py
> > > @@ -32,7 +32,7 @@ def test_cmd_smbios_sandbox(u_boot_console):
> > >      """Run the smbios command on the sandbox"""
> > >      output = u_boot_console.run_command('smbios')
> > >      assert 'DMI type 0,' in output
> > > -    assert 'String 1: U-Boot' in output
> > > +    assert 'Vendor: U-Boot' in output
> > >      assert 'DMI type 1,' in output
> > >      assert 'Manufacturer: sandbox' in output
> > >      assert 'DMI type 2,' in output
> >
> > This needs to be done with the change, not by itself.
> >
> Sorry but I didn't get what you mean... but shall I exclude this one from
> the series?

What I mean is that the series should be bisect'able within the pytest
framework too and not just build time. So the commit that breaks the
test is where the test should be fixed.
diff mbox series

Patch

diff --git a/test/py/tests/test_smbios.py b/test/py/tests/test_smbios.py
index 82b0b689830..ffa4ea795ec 100644
--- a/test/py/tests/test_smbios.py
+++ b/test/py/tests/test_smbios.py
@@ -32,7 +32,7 @@  def test_cmd_smbios_sandbox(u_boot_console):
     """Run the smbios command on the sandbox"""
     output = u_boot_console.run_command('smbios')
     assert 'DMI type 0,' in output
-    assert 'String 1: U-Boot' in output
+    assert 'Vendor: U-Boot' in output
     assert 'DMI type 1,' in output
     assert 'Manufacturer: sandbox' in output
     assert 'DMI type 2,' in output