]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: do not rely on => being the prompt
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 24 Jul 2020 18:55:37 +0000 (20:55 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 31 Jul 2020 12:44:41 +0000 (08:44 -0400)
In our tests we should use the customized prompt for testing.

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_efi_loader.py

index ca68626cec737a0679b90e28bb1b699dadc7714d..fc8d6b86559a2e20bec274fa7f29f91c9fe8200e 100644 (file)
@@ -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('')