diff options
author | Ryan Hill <rhill@gentoo.org> | 2015-05-12 22:09:28 -0600 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2015-05-12 22:09:28 -0600 |
commit | d45de09450ffb63b138bbb7f78cae43e1101e2ec (patch) | |
tree | 2198fa7f9c42c2989a4b47fc53ff3d5a34293bd6 /tests | |
parent | build with 64bit interfaces (diff) | |
download | gcc-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-x | tests/run_tests | 2 |
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} |