summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-12-04 15:53:01 +0000
committerMans Rullgard <mans@mansr.com>2012-12-04 23:38:17 +0000
commitda025d115a1ada58081cd869e85b81a1c183ae9e (patch)
tree564d297e7df2327290ebeaf5eea25ea80260235b /tests
parentc15fea7933b3801962851a37c3ef00ce968431c4 (diff)
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@mansr.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/fate-run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index cc6c4d1015..d1633e8be4 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}