aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 08:50:00 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 08:50:00 +0100
commit74272a9bc4ddb878080bd50bf718a6087b44631f (patch)
treef3fd2f4ac7d76704b15f0eb0cf2d7e00abdd7207 /tests
parent78422bdbabbba8708c0c46566ed8674ea85e2dec (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/lang/framework.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/lang/framework.sh b/tests/functional/lang/framework.sh
index 516bff8ad..9b886e983 100644
--- a/tests/functional/lang/framework.sh
+++ b/tests/functional/lang/framework.sh
@@ -16,7 +16,7 @@ function diffAndAcceptInner() {
fi
# 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"
badDiff=1
fi