#TODO: should I check if process is still running at that point (stream closed but process alive ?)
#TODO: should I check if process is still running at that point (stream closed but process alive ?)
ifself.shell_process.returncode!=0:
ifself.shell_process.returncode!=0:
raiseAssertionError('Shell process exited with an error code ({})'.format(self.shell_process.returncode))
raiseAssertionError('Shell process exited with an error code ({}). Standard error contains: "{}"'.format(self.shell_process.returncode,self.read_stderr()))