mirror of
				https://github.com/ARM-software/devlib.git
				synced 2025-11-03 15:31:20 +00:00 
			
		
		
		
	Merge pull request #101 from bjackman/energy-probe-get-caiman-error
energy_probe: Check if caimain was broken and raise an error
This commit is contained in:
		@@ -82,6 +82,13 @@ class EnergyProbeInstrument(Instrument):
 | 
			
		||||
                                        shell=True)
 | 
			
		||||
 | 
			
		||||
    def stop(self):
 | 
			
		||||
        self.process.poll()
 | 
			
		||||
        if self.process.returncode is not None:
 | 
			
		||||
            stdout, stderr = self.process.communicate()
 | 
			
		||||
            raise HostError(
 | 
			
		||||
                'Energy Probe: Caiman exited unexpectedly with exit code {}.\n'
 | 
			
		||||
                'stdout:\n{}\nstderr:\n{}'.format(self.process.returncode,
 | 
			
		||||
                                                  stdout, stderr))
 | 
			
		||||
        os.killpg(self.process.pid, signal.SIGTERM)
 | 
			
		||||
 | 
			
		||||
    def get_data(self, outfile):  # pylint: disable=R0914
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user