Skip to content
Snippets Groups Projects
Commit 11e59c0c authored by Guillaume Chanel's avatar Guillaume Chanel
Browse files

Show stderr if shell exits with error

parent e1ced285
Branches
No related tags found
No related merge requests found
Pipeline #20103 failed
...@@ -170,7 +170,7 @@ class Shell: ...@@ -170,7 +170,7 @@ class Shell:
#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 ?)
if self.shell_process.returncode != 0: if self.shell_process.returncode != 0:
raise AssertionError('Shell process exited with an error code ({})'.format(self.shell_process.returncode)) raise AssertionError('Shell process exited with an error code ({}). Standard error contains: "{}"'.format(self.shell_process.returncode, self.read_stderr()))
def read_stdout(self): def read_stdout(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment