mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	SSH/Gem5Connection: Adds shell_echo parameter
				
					
				
			This flag is used to indicate whether gem5 echos the exectued command which requires removal for correct parsing.
This commit is contained in:
		@@ -333,6 +333,7 @@ class Gem5Connection(TelnetConnection):
 | 
			
		||||
                 timeout=None,
 | 
			
		||||
                 password_prompt=None,
 | 
			
		||||
                 original_prompt=None,
 | 
			
		||||
                 strip_echoed_commands=False,
 | 
			
		||||
                 ):
 | 
			
		||||
        if host is not None:
 | 
			
		||||
            host_system = socket.gethostname()
 | 
			
		||||
@@ -349,6 +350,8 @@ class Gem5Connection(TelnetConnection):
 | 
			
		||||
        self.is_rooted = True
 | 
			
		||||
        self.password = None
 | 
			
		||||
        self.port = None
 | 
			
		||||
        # Flag to indicate whether commands are echoed by the simulated system
 | 
			
		||||
        self.strip_echoed_commands = strip_echoed_commands
 | 
			
		||||
        # Long timeouts to account for gem5 being slow
 | 
			
		||||
        # Can be overriden if the given timeout is longer
 | 
			
		||||
        self.default_timeout = 3600
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user