Merge pull request #9861 from 9999years/colored-diff-in-lang-tests

Color `diff` output in `tests/functional/lang` tests

(cherry picked from commit 1dc55c0f2f034bce6e3de4a5cda96d686b10a7f8)
Change-Id: Ie9b3fc3446bd3caa0fd8885de88639516a2ff862
This commit is contained in:
eldritch horrors 2024-03-04 08:50:00 +01:00
parent 78422bdbab
commit 74272a9bc4

View file

@ -16,7 +16,7 @@ function diffAndAcceptInner() {
fi fi
# Diff so we get a nice message # Diff so we get a nice message
if ! diff --unified "$got" "$expectedOrEmpty"; then if ! diff --color=always --unified "$expectedOrEmpty" "$got"; then
echo "FAIL: evaluation result of $testName not as expected" echo "FAIL: evaluation result of $testName not as expected"
badDiff=1 badDiff=1
fi fi