summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-02-18 11:04:06 +0200
committerLars Wirzenius <liw@liw.fi>2021-02-18 11:04:06 +0200
commitf43fa8bcb82cff19ca6e044cd2c460a31f86a5c0 (patch)
treefd4e977204b5136f0ea0f60615b5b6fe5d298907
parent62e56dd0b93f51705651b09286aad703cc2c6457 (diff)
downloadsummain-rs-f43fa8bcb82cff19ca6e044cd2c460a31f86a5c0.tar.gz
test: if output is not match, print diff
This makes it easier to debug failure in CI.
-rw-r--r--subplot/summain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot/summain.py b/subplot/summain.py
index ca7c0f6..d01e441 100644
--- a/subplot/summain.py
+++ b/subplot/summain.py
@@ -66,4 +66,7 @@ def output_matches_file(ctx, filename=None):
logging.debug(f" actual:\n{actual}")
logging.debug(f" expect:\n{expected}")
logging.debug(f" diff:\n{diff}")
+ if actual != expected:
+ print("ERROR: diff:")
+ print(diff)
assert_eq(actual, expected)