diff options
author | Mans Rullgard <mans@mansr.com> | 2012-05-15 11:52:28 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-05-15 15:23:34 +0100 |
commit | 0ff0af731ce4544f84b2f748dcc699717a2df8d6 (patch) | |
tree | 8718d3a4ab170622774748446958d586c155be62 /tests/fate-run.sh | |
parent | d89eca507c00f92e3b0649d678e9ea406b85b1b4 (diff) | |
download | ffmpeg-0ff0af731ce4544f84b2f748dcc699717a2df8d6.tar.gz |
fate: use diff -b in oneline comparison
This is simpler and should take care of any problems with mixed
line ending styles.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index a45e9a95b3..636fc2d599 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -61,9 +61,7 @@ stddev(){ } oneline(){ - val=$(cat "$2") - test x"$val" = x"$1" || { r=$?; printf -- '-%s\n+%s\n' "$ref" "$val"; } - return ${r:-0} + printf '%s\n' "$1" | diff -u -b - "$2" } run(){ |