Skip to content

Commit

Permalink
Return error as well (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Jun 23, 2021
1 parent 84a1cb6 commit 0bd5953
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ class ExternalBenchmarkR(conbench.runner.Benchmark):
)

def _run_r_command(self):
output = self.conbench.execute_r_command(self._get_r_command())
output, _ = self.conbench.execute_r_command(self._get_r_command())
result = float(output.split("\n")[-1].split("[1] ")[1])
return result, output

Expand Down
2 changes: 1 addition & 1 deletion conbench/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ def execute_r_command(self, r_command, quiet=True):
error = result.stderr.decode("utf-8").strip()
if result.returncode != 0:
raise Exception(error)
return output
return output, error
2 changes: 1 addition & 1 deletion conbench/tests/benchmark/_example_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def run(self, **kwargs):
)

def _run_r_command(self):
output = self.conbench.execute_r_command(self._get_r_command())
output, _ = self.conbench.execute_r_command(self._get_r_command())
result = float(output.split("\n")[-1].split("[1] ")[1])
return result, output

Expand Down

0 comments on commit 0bd5953

Please sign in to comment.