Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-suite | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index 1ef18f288..35138cb37 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -212,6 +212,23 @@ minmax_patterns() return $? } +## +# arg_file(filename) - checks if filename exists +arg_file() +{ + [ -z "$1" ] && { + do_usage + exit 1 + } + [ -e "$1" ] || { + error "Can't open file $1" + exit 1 + } + return 0 +} + + +## do_usage() { echo "$prog_name - a tiny automatic testing script" @@ -456,21 +473,6 @@ _EOF return 0 } -## -# arg_file(filename) - checks if filename exists -arg_file() -{ - [ -z "$1" ] && { - do_usage - exit 1 - } - [ -e "$1" ] || { - error "Can't open file $1" - exit 1 - } - return 0 -} - while true; do case "$1" in -a|--abort) -- 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