From bedbef8ad3e75a304af6361af235302bcc61d06b Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 14 May 2024 06:39:01 +0000 Subject: [PATCH] 修改内核路径 --- kernel/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh b/kernel/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh index 98f650c..6f50722 100755 --- a/kernel/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh +++ b/kernel/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: GPL-2.0+ # # Invoke a text editor on all console.log files for all runs with diagnostics, # that is, on all such files having a console.log.diags counterpart. @@ -10,11 +11,18 @@ # # The "directory" above should end with the date/time directory, for example, # "tools/testing/selftests/rcutorture/res/2018.02.25-14:27:27". +# Returns error status reflecting the success (or not) of the specified run. +# +# Copyright (C) IBM Corporation, 2018 +# +# Author: Paul E. McKenney <paulmck@linux.ibm.com> rundir="${1}" if test -z "$rundir" -o ! -d "$rundir" then + echo Directory "$rundir" not found. echo Usage: $0 directory + exit 1 fi editor=${EDITOR-vi} @@ -51,6 +59,8 @@ if test -n "$files" then $editor $files + exit 1 else echo No errors in console logs. + exit 0 fi -- Gitblit v1.6.2