Skip to contentSkip to conversation

test: do not rely on => being the prompt

PATCH New Heinrich Schuchardt 2 participants 3 messages Jul 24, 2020 – Jul 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: do not rely on => being the prompt

In our tests we should use the customized prompt for testing.

---
 test/py/tests/test_efi_loader.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/tests/test_efi_loader.py +1 -1
index ca68626cec..fc8d6b8655 100644
@@ -199,6 +199,6 @@ def test_efi_grub_net(u_boot_console):
     # Then exit cleanly
     u_boot_console.wait_for('grub>')
     u_boot_console.run_command('exit', wait_for_prompt=False, wait_for_echo=False)
-    u_boot_console.wait_for('=>')
+    u_boot_console.wait_for(u_boot_console.prompt)
     # And give us our U-Boot prompt back
     u_boot_console.run_command('')

--
2.27.0

#1 lore raw

PATCH 1/1 test: do not rely on => being the prompt

Quoted 4 lines · Heinrich Schuchardt

In our tests we should use the customized prompt for testing.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200727/162aaa04/attachment.sig>
#2 lore raw

PATCH 1/1 test: do not rely on => being the prompt

In reply to Heinrich Schuchardt
Quoted 5 lines · Heinrich Schuchardt

In our tests we should use the customized prompt for testing.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200731/979c11f0/attachment.sig>