]> 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)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 03:13:24 +0000 (19:13 -0800)
(cherry picked from commit f7ac41757a880577519a464583648065d9987bbd)
(cherry picked from commit bd5b36f7a465bd232f4f5521096fd132e9a43118)

bin/tests/system/conf.sh.in
bin/tests/system/conf.sh.win32

index 51677f902ce424f029952bd646051fec6ca30bf6..437d482ee49afbe9ea21dec45e6d3eca35065247 100644 (file)
@@ -186,6 +186,12 @@ else
        }
 fi
 
+TESTNAME="`basename $PWD`"
+
+echo_i() {
+    echoinfo "I:$TESTNAME:$@"
+}
+
 #
 # Export command paths
 #
index 002c0ae41075d87289b21e3c800bdcf3234163dd..9c6dcd2bcb6e428d0cec5499e3ca553d7bbb8880 100644 (file)
@@ -181,6 +181,12 @@ echoinfo () {
         printf "${COLOR_INFO}%s${COLOR_NONE}\n" "$*"
 }
 
+TESTNAME="`basename $PWD`"
+
+echo_i() {
+    echoinfo "I:$TESTNAME:$@"
+}
+
 #
 # Export command paths
 #