All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] test/py: Reset the console timeout value
@ 2022-05-17 15:24 Bin Meng
  2022-05-17 15:24 ` [PATCH 2/3] test/py: test_fs: Correct the test case name Bin Meng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bin Meng @ 2022-05-17 15:24 UTC (permalink / raw)
  To: Simon Glass, Tom Rini, U-Boot Mailing List

Reset the console timeout value as some tests may change its default
value during the execution.

This fixes the random case timeout issue seen in the U-Boot CI.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 test/py/u_boot_console_base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py
index 58ec859b34..26b6de07f8 100644
--- a/test/py/u_boot_console_base.py
+++ b/test/py/u_boot_console_base.py
@@ -400,6 +400,10 @@ class ConsoleBase(object):
         """
 
         if self.p:
+            # Reset the console timeout value as some tests may change
+            # its default value during the execution
+            if not self.config.gdbserver:
+                self.p.timeout = 30000
             return
         try:
             self.log.start_section('Starting U-Boot')
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] test/py: test_fs: Correct the test case name
  2022-05-17 15:24 [PATCH 1/3] test/py: Reset the console timeout value Bin Meng
@ 2022-05-17 15:24 ` Bin Meng
  2022-05-27 13:30   ` Tom Rini
  2022-05-17 15:24 ` [PATCH 3/3] test/py: test_part: " Bin Meng
  2022-05-27 13:29 ` [PATCH 1/3] test/py: Reset the console timeout value Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: Bin Meng @ 2022-05-17 15:24 UTC (permalink / raw)
  To: Simon Glass, Tom Rini, U-Boot Mailing List

Use test_fstypes as the name instead of test_dm_compact.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 test/py/tests/test_fs/test_fs_cmd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/tests/test_fs/test_fs_cmd.py b/test/py/tests/test_fs/test_fs_cmd.py
index ba39a53159..700cf3591d 100644
--- a/test/py/tests/test_fs/test_fs_cmd.py
+++ b/test/py/tests/test_fs/test_fs_cmd.py
@@ -6,7 +6,7 @@ import pytest
 
 @pytest.mark.boardspec('sandbox')
 @pytest.mark.buildconfigspec('cmd_fs_generic')
-def test_dm_compat(u_boot_console):
+def test_fstypes(u_boot_console):
     """Test that `fstypes` prints a result which includes `sandbox`."""
     output = u_boot_console.run_command('fstypes')
     assert "Supported filesystems:" in output
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] test/py: test_part: Correct the test case name
  2022-05-17 15:24 [PATCH 1/3] test/py: Reset the console timeout value Bin Meng
  2022-05-17 15:24 ` [PATCH 2/3] test/py: test_fs: Correct the test case name Bin Meng
@ 2022-05-17 15:24 ` Bin Meng
  2022-05-27 13:30   ` Tom Rini
  2022-05-27 13:29 ` [PATCH 1/3] test/py: Reset the console timeout value Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: Bin Meng @ 2022-05-17 15:24 UTC (permalink / raw)
  To: Simon Glass, Tom Rini, U-Boot Mailing List

Use test_part_types as the name instead of dm_compact.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 test/py/tests/test_part.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/tests/test_part.py b/test/py/tests/test_part.py
index cba9804510..2b5184654d 100644
--- a/test/py/tests/test_part.py
+++ b/test/py/tests/test_part.py
@@ -7,7 +7,7 @@ import pytest
 @pytest.mark.buildconfigspec('cmd_part')
 @pytest.mark.buildconfigspec('partitions')
 @pytest.mark.buildconfigspec('efi_partition')
-def test_dm_compat(u_boot_console):
+def test_part_types(u_boot_console):
     """Test that `part types` prints a result which includes `EFI`."""
     output = u_boot_console.run_command('part types')
     assert "Supported partition tables:" in output
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] test/py: Reset the console timeout value
  2022-05-17 15:24 [PATCH 1/3] test/py: Reset the console timeout value Bin Meng
  2022-05-17 15:24 ` [PATCH 2/3] test/py: test_fs: Correct the test case name Bin Meng
  2022-05-17 15:24 ` [PATCH 3/3] test/py: test_part: " Bin Meng
@ 2022-05-27 13:29 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-05-27 13:29 UTC (permalink / raw)
  To: Bin Meng; +Cc: Simon Glass, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

On Tue, May 17, 2022 at 11:24:43PM +0800, Bin Meng wrote:

> Reset the console timeout value as some tests may change its default
> value during the execution.
> 
> This fixes the random case timeout issue seen in the U-Boot CI.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] test/py: test_fs: Correct the test case name
  2022-05-17 15:24 ` [PATCH 2/3] test/py: test_fs: Correct the test case name Bin Meng
@ 2022-05-27 13:30   ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-05-27 13:30 UTC (permalink / raw)
  To: Bin Meng; +Cc: Simon Glass, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

On Tue, May 17, 2022 at 11:24:44PM +0800, Bin Meng wrote:

> Use test_fstypes as the name instead of test_dm_compact.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] test/py: test_part: Correct the test case name
  2022-05-17 15:24 ` [PATCH 3/3] test/py: test_part: " Bin Meng
@ 2022-05-27 13:30   ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2022-05-27 13:30 UTC (permalink / raw)
  To: Bin Meng; +Cc: Simon Glass, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

On Tue, May 17, 2022 at 11:24:45PM +0800, Bin Meng wrote:

> Use test_part_types as the name instead of dm_compact.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-27 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 15:24 [PATCH 1/3] test/py: Reset the console timeout value Bin Meng
2022-05-17 15:24 ` [PATCH 2/3] test/py: test_fs: Correct the test case name Bin Meng
2022-05-27 13:30   ` Tom Rini
2022-05-17 15:24 ` [PATCH 3/3] test/py: test_part: " Bin Meng
2022-05-27 13:30   ` Tom Rini
2022-05-27 13:29 ` [PATCH 1/3] test/py: Reset the console timeout value Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.