mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			removed test serial flush
							parent
							
								
									e895edd912
								
							
						
					
					
						commit
						f4a1aca6a3
					
				| 
						 | 
				
			
			@ -39,7 +39,6 @@ from workspace_tools.test_api import get_autodetected_MUTS_list
 | 
			
		|||
from workspace_tools.test_api import get_module_avail
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Mbed:
 | 
			
		||||
    """ Base class for a host driven test
 | 
			
		||||
    """
 | 
			
		||||
| 
						 | 
				
			
			@ -147,7 +146,6 @@ class Mbed:
 | 
			
		|||
                    mut = muts_list[1]
 | 
			
		||||
                    self.port = mut['port']
 | 
			
		||||
                    found = True
 | 
			
		||||
 | 
			
		||||
                    break
 | 
			
		||||
                else:
 | 
			
		||||
                    sleep(3)
 | 
			
		||||
| 
						 | 
				
			
			@ -252,9 +250,7 @@ class Mbed:
 | 
			
		|||
            Please refer to host_test_plugins functionality
 | 
			
		||||
        """
 | 
			
		||||
        # Flush serials to get only input after reset
 | 
			
		||||
        #self.flush()
 | 
			
		||||
        self.serial.flushInput()
 | 
			
		||||
        self.serial.flushOutput()
 | 
			
		||||
        self.flush()
 | 
			
		||||
        if self.options.forced_reset_type:
 | 
			
		||||
            result = host_tests_plugins.call_plugin('ResetMethod', self.options.forced_reset_type, disk=self.disk)
 | 
			
		||||
        else:
 | 
			
		||||
| 
						 | 
				
			
			@ -289,7 +285,6 @@ class Mbed:
 | 
			
		|||
            copy_method = 'shell'
 | 
			
		||||
 | 
			
		||||
        result = host_tests_plugins.call_plugin('CopyMethod', copy_method, image_path=image_path, destination_disk=disk, program_cycle_s=self.program_cycle_s, target_mcu=self.options.micro)
 | 
			
		||||
 | 
			
		||||
        return result;
 | 
			
		||||
 | 
			
		||||
    def flush(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1707,6 +1707,7 @@ def get_autodetected_MUTS(mbeds_list, platform_name_filter=None):
 | 
			
		|||
    index = 1
 | 
			
		||||
    for mut in mbeds_list:
 | 
			
		||||
        # Filter the MUTS if a filter is specified
 | 
			
		||||
 | 
			
		||||
        if platform_name_filter and not mut['platform_name'] in platform_name_filter:
 | 
			
		||||
            continue
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue