From: Martin Schwenke Date: Thu, 3 Oct 2019 07:25:10 +0000 (+1000) Subject: ctdb-tests: Rename functions to test_header() and test_footer() X-Git-Tag: talloc-2.3.1~482 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bddee8dac095016e892731abe9e5a668c38375d;p=thirdparty%2Fsamba.git ctdb-tests: Rename functions to test_header() and test_footer() That's all they do now. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Fri Oct 4 10:58:10 UTC 2019 on sn-devel-184 --- diff --git a/ctdb/tests/run_tests.sh b/ctdb/tests/run_tests.sh index 6e4082e396a..c162aa54bc4 100755 --- a/ctdb/tests/run_tests.sh +++ b/ctdb/tests/run_tests.sh @@ -85,7 +85,7 @@ fi ###################################################################### -ctdb_test_begin () +test_header () { local name="$1" @@ -94,7 +94,7 @@ ctdb_test_begin () echo "--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--" } -ctdb_test_end () +test_footer () { local f="$1" local status="$2" @@ -117,7 +117,7 @@ ctdb_test_run () { local f="$1" - $no_header || ctdb_test_begin "$f" + $no_header || test_header "$f" local status=0 local start_time @@ -160,7 +160,7 @@ ctdb_test_run () ;; esac - $no_header || ctdb_test_end "$f" "$status" "$interp" "$duration" + $no_header || test_footer "$f" "$status" "$interp" "$duration" if $with_summary ; then local t