Skip to content

Commit ec1d691

Browse files
author
owen-jones-diffblue
authored
Merge pull request diffblue#299 from diffblue/owen-jones-diffblue/small-fix-to-end-to-end-driver
Only print message if test failed
2 parents f7e4dd1 + 6658d70 commit ec1d691

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

regression/end_to_end/driver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def __enter__(self):
5252
return self
5353

5454
def __exit__(self, exc_type, exc_value, traceback):
55-
print("Failure may relate to command: ", self.cmdline, file=sys.stderr)
55+
if exc_value is not None:
56+
print("Failure may relate to command: ", self.cmdline, file=sys.stderr)
5657

5758
def quote_pathnames_in_command_line(cmdline):
5859
assert isinstance(cmdline, list) and len(cmdline) > 0

0 commit comments

Comments
 (0)