mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-04 07:51:21 +00:00 
			
		
		
		
	target: Increase timeout for checking if rooted.
One some devices executing this command takes longer than the original 2 seconds allowed causing devlib to incorrectly think it was not rooted.
This commit is contained in:
		@@ -85,7 +85,7 @@ class Target(object):
 | 
			
		||||
        if self.connected_as_root:
 | 
			
		||||
            return True
 | 
			
		||||
        try:
 | 
			
		||||
            self.execute('ls /', timeout=2, as_root=True)
 | 
			
		||||
            self.execute('ls /', timeout=5, as_root=True)
 | 
			
		||||
            return True
 | 
			
		||||
        except (TargetError, TimeoutError):
 | 
			
		||||
            return False
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user