X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fsnapshots%2Ftest_kernel;h=24b0ad4a2b6f43dc222cf42c6607807713718f50;hb=0e8f2e4553c98e9c9c987ceaa00b7efe98b686e8;hp=06d16c75703b3b842917cceb6e44a7fd1dc98088;hpb=9f0e230a68c5715f28372aa3df9ad1cb13cf6b43;p=lttng-tools.git diff --git a/tests/regression/tools/snapshots/test_kernel b/tests/regression/tools/snapshots/test_kernel index 06d16c757..24b0ad4a2 100755 --- a/tests/regression/tools/snapshots/test_kernel +++ b/tests/regression/tools/snapshots/test_kernel @@ -1,19 +1,9 @@ #!/bin/bash # -# Copyright (C) - 2013 Julien Desfossez +# Copyright (C) 2013 Julien Desfossez # -# This library is free software; you can redistribute it and/or modify it under -# the terms of the GNU Lesser General Public License as published by the Free -# Software Foundation; version 2.1 of the License. -# -# This library is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more -# details. -# -# 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 +# SPDX-License-Identifier: LGPL-2.1-only + TEST_DESC="Snapshots - Kernel tracing" CURDIR=$(dirname $0)/ @@ -148,9 +138,9 @@ function test_kernel_local_snapshot_discard () rm -rf $TRACE_PATH if [ x"$FIRST_LINE" != x"$FIRST_LINE_2" ]; then - fail "First snapshot event do not match." + fail "First snapshot event do not match" else - pass "First snapshot event match." + pass "First snapshot event match" fi stop_lttng_tracing_ok $SESSION_NAME @@ -186,9 +176,9 @@ function test_kernel_local_snapshot_overwrite_small_buffers () rm -rf $TRACE_PATH if [ x"$FIRST_LINE" != x"$FIRST_LINE_2" ]; then - pass "First snapshot event do not match." + pass "First snapshot event do not match" else - fail "First snapshot event match." + fail "First snapshot event match" fi stop_lttng_tracing_ok $SESSION_NAME @@ -232,7 +222,7 @@ else isroot=0 fi -skip $isroot "Root access is needed. Skipping all kernel snapshot tests." $NUM_TESTS || +skip $isroot "Root access is needed. Skipping all kernel snapshot tests" $NUM_TESTS || { validate_lttng_modules_present