aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2015-05-12 22:09:28 -0600
committerRyan Hill <rhill@gentoo.org>2015-05-12 22:09:28 -0600
commitd45de09450ffb63b138bbb7f78cae43e1101e2ec (patch)
tree2198fa7f9c42c2989a4b47fc53ff3d5a34293bd6 /tests
parentbuild with 64bit interfaces (diff)
downloadgcc-config-d45de09450ffb63b138bbb7f78cae43e1101e2ec.tar.gz
gcc-config-d45de09450ffb63b138bbb7f78cae43e1101e2ec.tar.bz2
gcc-config-d45de09450ffb63b138bbb7f78cae43e1101e2ec.zip
Ignore whitespace when diffing test results.
The amount of whitespace output by ebegin/eend from gentoo-functions is dynamic (seems to be dependent on terminal width). Since we can't predict this we have to ignore all whitespace differences. URL: https://bugs.gentoo.org/547586 Reported-by: tka <tka@kamph.org> Signed-off-by: Ryan Hill <rhill@gentoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests b/tests/run_tests
index 2ff7d77..397d667 100755
--- a/tests/run_tests
+++ b/tests/run_tests
@@ -44,7 +44,7 @@ cmp_log() {
args+=( -e "s|: line [0-9]*: |: |g" )
sed "${args[@]}" "${exp}" > "${exp}.tmp"
sed "${args[@]}" "${log}" > "${log}.tmp"
- diff -u "${exp}.tmp" "${log}.tmp" > "${log}.diff"
+ diff -uw "${exp}.tmp" "${log}.tmp" > "${log}.diff"
ret=$?
rm "${exp}.tmp"
return ${ret}