Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- validation/test-suite | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/validation/test-suite b/validation/test-suite index 9e30ed937..5f63a23bb 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -71,6 +71,23 @@ get_tag_value() EOT } +## +# verbose(string) - prints string if we are in verbose mode +verbose() +{ + [ "$V" -eq "1" ] && echo " $1" + return 0 +} + +## +# error(string[, die]) - prints an error and exits with value die if given +error() +{ + [ "$quiet" -ne 1 ] && echo "error: $1" + [ -n "$2" ] && exit $2 + return 0 +} + ## # helper for has_(each|none)_patterns() has_patterns() @@ -132,23 +149,6 @@ nbr_patterns() return $? } -## -# verbose(string) - prints string if we are in verbose mode -verbose() -{ - [ "$V" -eq "1" ] && echo " $1" - return 0 -} - -## -# error(string[, die]) - prints an error and exits with value die if given -error() -{ - [ "$quiet" -ne 1 ] && echo "error: $1" - [ -n "$2" ] && exit $2 - return 0 -} - do_usage() { echo "$prog_name - a tiny automatic testing script" -- 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