]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Add echo_i function to print I:<testname>:string
authorOndřej Surý <ondrej@sury.org>
Wed, 18 Oct 2017 12:19:28 +0000 (14:19 +0200)
committerStephen Morris <stephen@isc.org>
Fri, 16 Feb 2018 14:57:50 +0000 (14:57 +0000)
bin/tests/system/conf.sh.in
bin/tests/system/conf.sh.win32

index 27a4bee42440eacd7da5b61a14b8f06a8bbbc846..d76a817ddad8ec6c9d2296a2d7409b8551c6b249 100644 (file)
@@ -188,6 +188,12 @@ else
        }
 fi
 
+TESTNAME="`basename $PWD`"
+
+echo_i() {
+    echoinfo "I:$TESTNAME:$@"
+}
+
 #
 # Useful functions in test scripts
 #
index bda29fceaacd260e4bb82ad8893217a2099da0b8..2d48882289c26715de3d9e471cba832f0ef7a58d 100644 (file)
@@ -182,6 +182,12 @@ echoinfo () {
         printf "${COLOR_INFO}%s${COLOR_NONE}\n" "$*"
 }
 
+TESTNAME="`basename $PWD`"
+
+echo_i() {
+    echoinfo "I:$TESTNAME:$@"
+}
+
 #
 # Useful functions in test scripts
 #