X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Fstreaming%2Frun-kernel;fp=tests%2Ftools%2Fstreaming%2Frun-kernel;h=b87be13c50f5b191da036cd8f033864c6955b53a;hp=73a99de158a070ccef6f95cbdb1b9d5953b260dd;hb=c38b5107fcb9435ea7584e82f6c61319a9391fc0;hpb=fec81a7e6e7d21bef1a16643404ac5016009feb3 diff --git a/tests/tools/streaming/run-kernel b/tests/tools/streaming/run-kernel index 73a99de15..b87be13c5 100755 --- a/tests/tools/streaming/run-kernel +++ b/tests/tools/streaming/run-kernel @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this library; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +TEST_DESC="Streaming - Kernel tracing" CURDIR=$(dirname $0)/ TESTDIR=$CURDIR/../.. @@ -25,9 +26,7 @@ TRACE_PATH=$(mktemp -d) source $TESTDIR/utils.sh -echo -e "\n---------------------------" -echo -e " Streaming - Kernel tracing " -echo -e "----------------------------" +print_test_banner "$TEST_DESC" if [ "$(id -u)" != "0" ]; then echo "This test must be running as root. Aborting" @@ -50,10 +49,10 @@ function lttng_create_session # Create session with default path $TESTDIR/../src/bin/lttng/$LTTNG_BIN create $SESSION_NAME >/dev/null 2>&1 if [ $? -eq 1 ]; then - echo -e '\e[1;31mFAILED\e[0m' + print_fail return 1 else - echo -e "\e[1;32mOK\e[0m" + print_ok fi } @@ -63,10 +62,10 @@ function lttng_enable_consumer_localhost # Create session with default path $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-consumer -k net://localhost >/dev/null 2>&1 if [ $? -eq 1 ]; then - echo -e '\e[1;31mFAILED\e[0m' + print_fail return 1 else - echo -e "\e[1;32mOK\e[0m" + print_ok fi }