Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-suite | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index b4ba39f3f..599f5e7e6 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -460,17 +460,12 @@ do_format() arg_file "$1" || return 1 - if [ -z "$2" ]; then - fname="$1" - fcmd=$default_cmd - elif [ -z "$3" ]; then - fname="$2" - fcmd=$default_cmd - else - fname="$2" - fcmd="$3" - fi file="$1" + fname="$2" + [ -z "$fname" ] && fname="$1" + fcmd="$3" + [ -z "$fcmd" ] && fcmd=$default_cmd + cmd=`eval echo $default_path/$fcmd` $cmd 1> $file.output.got 2> $file.error.got fexit_value=$? -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html