Lines Matching refs:ubman
8 def test_bootmenu(ubman): argument
14 with ubman.temporary_timeout(500):
15 ubman.run_command('setenv bootmenu_default 1')
16 ubman.run_command('setenv bootmenu_0 test 1=echo ok 1')
17 ubman.run_command('setenv bootmenu_1 test 2=echo ok 2')
18 ubman.run_command('setenv bootmenu_2 test 3=echo ok 3')
19 ubman.run_command('bootmenu 2', wait_for_prompt=False)
21 ubman.p.expect([i])
23 response = ubman.run_command(cmd='\x0d', wait_for_echo=False, send_nl=False)
25 ubman.run_command('bootmenu 2', wait_for_prompt=False)
26 ubman.p.expect(['autoboot'])
28 response = ubman.run_command(cmd='\x1b\x5b\x41\x0d', wait_for_echo=False,
31 ubman.run_command('bootmenu 2', wait_for_prompt=False)
32 ubman.p.expect(['autoboot'])
34 response = ubman.run_command(cmd='\x1b\x5b\x42\x0d', wait_for_echo=False,
37 ubman.run_command('bootmenu 2; echo rc:$?', wait_for_prompt=False)
38 ubman.p.expect(['autoboot'])
40 response = ubman.run_command(cmd='\x1b', wait_for_echo=False, send_nl=False)
43 ubman.run_command('setenv bootmenu_default')
44 ubman.run_command('setenv bootmenu_0')
45 ubman.run_command('setenv bootmenu_1')
46 ubman.run_command('setenv bootmenu_2')