mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 04:52:56 +00:00 
			
		
		
		
	Comply with changes in TFW API
This commit is contained in:
		@@ -42,7 +42,7 @@ class TestCommands(TerminalCommands):
 | 
				
			|||||||
                'key': 'shell',
 | 
					                'key': 'shell',
 | 
				
			||||||
                'data': {
 | 
					                'data': {
 | 
				
			||||||
                    'command': 'write',
 | 
					                    'command': 'write',
 | 
				
			||||||
                    'shellcmd': f'sendmessage {message_template}'
 | 
					                    'value': f'sendmessage {message_template}'
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
@@ -61,13 +61,13 @@ class TestCommands(TerminalCommands):
 | 
				
			|||||||
            'key': 'shell',
 | 
					            'key': 'shell',
 | 
				
			||||||
            'data': {
 | 
					            'data': {
 | 
				
			||||||
                'command': 'write',
 | 
					                'command': 'write',
 | 
				
			||||||
                'shellcmd': f'{seppuku}\n'
 | 
					                'value': f'{seppuku}\n'
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        uplink.send({
 | 
					        uplink.send({
 | 
				
			||||||
            'key': 'dashboard',
 | 
					            'key': 'dashboard',
 | 
				
			||||||
            'data': {
 | 
					            'data': {
 | 
				
			||||||
                'command': 'reload_frontend'
 | 
					                'command': 'reloadFrontend'
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -98,6 +98,7 @@ if __name__ == '__main__':
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    commands = TestCommands(bashrc=f'/home/{TAOENV.USER}/.bashrc')
 | 
					    commands = TestCommands(bashrc=f'/home/{TAOENV.USER}/.bashrc')
 | 
				
			||||||
    terminal.historymonitor.subscribe_callback(commands.callback)
 | 
					    terminal.historymonitor.subscribe_callback(commands.callback)
 | 
				
			||||||
 | 
					    terminal.historymonitor.subscribe_callback(cenator)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        IOLoop.instance().start()
 | 
					        IOLoop.instance().start()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user