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