aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2018-01-25 13:47:50 +0100
committerDiana Picus <diana.picus@linaro.org>2018-01-25 17:30:14 +0100
commit5fdc89214263199f0b21ecbde42ad4932e4d4980 (patch)
tree2cdd48f2ea8fc13e6a2e4c5bbd557e95f138815c
parent37126b8bb583f22bca62af4d7864f9b70bf9b0e9 (diff)
downloadlinaro-scripts-5fdc89214263199f0b21ecbde42ad4932e4d4980.tar.gz
Set maxDiff to None in the debug decorator. NFC
This makes it possible for us to see large diffs between the actual and expected values when debugging a test. Change-Id: Iad81fb4c3b3a3306f3ad2ce842c47363e302cb5f
-rw-r--r--tests/cli/llvmtestcase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cli/llvmtestcase.py b/tests/cli/llvmtestcase.py
index db3635f..0f29ce6 100644
--- a/tests/cli/llvmtestcase.py
+++ b/tests/cli/llvmtestcase.py
@@ -21,6 +21,9 @@ def debug(test):
def wrapper(*args, **kwargs):
# Catch any exceptions so we can dump all the output
try:
+ self = args[0]
+ self.maxDiff = None # So we can see large diffs between
+ # expected/actual
test(*args, **kwargs)
except subprocess.CalledProcessError as exc:
print("Error in {}:".format(test.__name__))