forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/rcutorture/bin/parse-build.sh
....@@ -1,4 +1,5 @@
11 #!/bin/bash
2
+# SPDX-License-Identifier: GPL-2.0+
23 #
34 # Check the build output from an rcutorture run for goodness.
45 # The "file" is a pathname on the local system, and "title" is
....@@ -8,23 +9,9 @@
89 #
910 # Usage: parse-build.sh file title
1011 #
11
-# This program is free software; you can redistribute it and/or modify
12
-# it under the terms of the GNU General Public License as published by
13
-# the Free Software Foundation; either version 2 of the License, or
14
-# (at your option) any later version.
15
-#
16
-# This program is distributed in the hope that it will be useful,
17
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
18
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
-# GNU General Public License for more details.
20
-#
21
-# You should have received a copy of the GNU General Public License
22
-# along with this program; if not, you can access it online at
23
-# http://www.gnu.org/licenses/gpl-2.0.html.
24
-#
2512 # Copyright (C) IBM Corporation, 2011
2613 #
27
-# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
14
+# Authors: Paul E. McKenney <paulmck@linux.ibm.com>
2815
2916 F=$1
3017 title=$2
....@@ -34,7 +21,7 @@
3421
3522 . functions.sh
3623
37
-if grep -q CC < $F
24
+if grep -q CC < $F || test -n "$TORTURE_TRUST_MAKE"
3825 then
3926 :
4027 else