From 31e19db64a16de8bcf7e45f9a3cfe6412a1aff2d Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 16 Jul 2020 21:00:10 +0200 Subject: [PATCH] Update littlecheck Update littlecheck to dda885bed9d4a4c6ea1d9d66d0ca93fb54492b7c, which also displays the context view when the error is on the first line. --- build_tools/littlecheck.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_tools/littlecheck.py b/build_tools/littlecheck.py index 2611c063a..ecd486037 100755 --- a/build_tools/littlecheck.py +++ b/build_tools/littlecheck.py @@ -223,7 +223,11 @@ class TestFailure(object): ] elif self.after: fields["additional_output"] = " ".join(self.after[:afterlines]) - fmtstrs += [" additional output:", " {BOLD}{additional_output}{RESET}"] + fmtstrs += [ + " Context:", + " {RED}{output_line}{RESET} <= does not match '{LIGHTBLUE}{input_line}{RESET}'", + " {BOLD}{additional_output}{RESET}" + ] fmtstrs += [" when running command:", " {subbed_command}"] return "\n".join(fmtstrs).format(**fields)