mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 16:02:54 +00:00 
			
		
		
		
	Implement seppuku command
This commit is contained in:
		@@ -34,6 +34,15 @@ class TestCommands(TerminalCommands):
 | 
			
		||||
                                            'next_visibility': self.togglenext_visible}})
 | 
			
		||||
        self.togglenext_visible = not self.togglenext_visible
 | 
			
		||||
 | 
			
		||||
    def command_seppuku_tfw(self, *args):
 | 
			
		||||
        seppuku = ('nohup sh -c "supervisorctl restart tfwserver event_handler_main" &> /dev/null & '
 | 
			
		||||
                   'clear && echo "Committed seppuku! :)" && sleep infinity')
 | 
			
		||||
        TFWServerConnector().send_to_eventhandler({
 | 
			
		||||
            'key': 'shell',
 | 
			
		||||
            'data': {'command': 'write',
 | 
			
		||||
                     'shellcmd': f'{seppuku}\n'}
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    # pylint: disable=invalid-name
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user