mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	dhrystone: kill any running instances during setup (also handle CTRL-C).
This commit is contained in:
		@@ -76,9 +76,14 @@ class Dhrystone(Workload):
 | 
			
		||||
                                                    execution_mode,
 | 
			
		||||
                                                    self.threads, self.delay)
 | 
			
		||||
        self.timeout = self.duration and self.duration + self.delay * self.threads + 10 or 300
 | 
			
		||||
        self.device.killall('dhrystone')
 | 
			
		||||
 | 
			
		||||
    def run(self, context):
 | 
			
		||||
        self.output = self.device.execute(self.command, timeout=self.timeout, check_exit_code=False)
 | 
			
		||||
        try:
 | 
			
		||||
            self.output = self.device.execute(self.command, timeout=self.timeout, check_exit_code=False)
 | 
			
		||||
        except KeyboardInterrupt:
 | 
			
		||||
            self.device.killall('dhrystone')
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
    def update_result(self, context):
 | 
			
		||||
        outfile = os.path.join(context.output_directory, 'dhrystone.output')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user