summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-05-10 09:38:47 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-05-10 09:38:47 +0100
commit39762f0cf02e4517d5908bc3ebecf87b5cd8399e (patch)
treeddf32c7ea0de83b9c29d21964658ca053d27874f /test
parentabac6a9436b265d824d91d6232d5d09063de6aa0 (diff)
preserve diff leading whitespaces when displayin them in the test runner
Diffstat (limited to 'test')
-rwxr-xr-xtest/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run b/test/run
index 42c51a43..c1e951aa 100755
--- a/test/run
+++ b/test/run
@@ -148,7 +148,7 @@ colorize() {
}
show_diff() {
- diff -u $1 $2 | while read -r line; do
+ diff -u $1 $2 | while IFS='' read -r line; do
first_character=$(echo "$line" | cut -b 1)
case $first_character in
+) color=green ;;