mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 23:41:21 +00:00 
			
		
		
		
	utils/android: Fix echoing of commands.
The fix in commit 964fde2 caused issues with certain command structures,
for example running in the background. To prevent this run the original
command as a subshell.
			
			
This commit is contained in:
		@@ -444,7 +444,7 @@ def adb_shell(device, command, timeout=None, check_exit_code=False,
 | 
			
		||||
    # command failed (https://code.google.com/p/android/issues/detail?id=3254).
 | 
			
		||||
    # Homogenise this behaviour by running the command then echoing the exit
 | 
			
		||||
    # code of the executed command itself.
 | 
			
		||||
    command += r' ; echo "\n$?"'
 | 
			
		||||
    command = r'({}); echo "\n$?"'.format(command)
 | 
			
		||||
 | 
			
		||||
    parts = ['adb']
 | 
			
		||||
    if adb_server is not None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user