- ../mimedecode.py -H test -f utf-8 input/"$1" >tmp/"$1" || return 1
- if cmp -s expected/"$1" tmp/"$1"; then
- rm tmp/"$1" && return 0 || return 1
+ infile="$1"
+ shift
+ expfile="$1"
+ shift
+
+ ../mimedecode.py -H test -f utf-8 "$@" input/"$infile" >tmp/"$expfile" || return 1
+ if cmp -s expected/"$expfile" tmp/"$expfile"; then
+ rm tmp/"$expfile" && return 0 || return 1