[FFmpeg-cvslog] fate: workaround for slighly broken 'test' shell builtin

Mans Rullgard git at videolan.org
Wed Dec 5 17:36:56 CET 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Dec  4 15:53:01 2012 +0000| [da025d115a1ada58081cd869e85b81a1c183ae9e] | committer: Mans Rullgard

fate: workaround for slighly broken 'test' shell builtin

Some shells, e.g. minix3, have a broken 'test' builtin which fails
if the first operand of a binary operator looks like a unary operator.
Prefixing the values with 'x' prevents this from happening.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da025d115a1ada58081cd869e85b81a1c183ae9e
---

 tests/fate-run.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index cc6c4d1..d1633e8 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -78,7 +78,7 @@ avconv(){
     dec_opts="-threads $threads -thread_type $thread_type"
     avconv_args="-nostats -cpuflags $cpuflags"
     for arg in $@; do
-        [ ${arg} = -i ] && avconv_args="${avconv_args} ${dec_opts}"
+        [ x${arg} = x-i ] && avconv_args="${avconv_args} ${dec_opts}"
         avconv_args="${avconv_args} ${arg}"
     done
     run avconv ${avconv_args}



More information about the ffmpeg-cvslog mailing list