aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/functions.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-09-29 14:13:46 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 13:11:11 -0500
commit4275be83b807c2926d2b23e67eb61692a1810080 (patch)
tree8a38da9120e8e9d2ed4e797067e9afb8c91d19e8 /tools/testing/selftests/rcutorture/bin/functions.sh
parentbb918535a15a0c9ca217a99394dcae0c44711f1c (diff)
rcutorture: Add per-version default Kconfig fragments and module parameters
Different Kconfig parameters apply to different kernel versions, as do different rcutorture module parameters. This commit allows the rcutorture test scripts to adjust for different kernel versions. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Greg KH <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/functions.sh')
-rw-r--r--tools/testing/selftests/rcutorture/bin/functions.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh
index db1c32acdcf6..d4c15f81cd27 100644
--- a/tools/testing/selftests/rcutorture/bin/functions.sh
+++ b/tools/testing/selftests/rcutorture/bin/functions.sh
@@ -32,11 +32,10 @@ bootparam_hotplug_cpu () {
32# 32#
33# Returns 1 if the config fragment specifies hotplug CPU. 33# Returns 1 if the config fragment specifies hotplug CPU.
34configfrag_hotplug_cpu () { 34configfrag_hotplug_cpu () {
35 cf=$1 35 if test ! -r "$1"
36 if test ! -r $cf
37 then 36 then
38 echo Unreadable config fragment $cf 1>&2 37 echo Unreadable config fragment "$1" 1>&2
39 exit -1 38 exit -1
40 fi 39 fi
41 grep -q '^CONFIG_HOTPLUG_CPU=y$' $cf 40 grep -q '^CONFIG_HOTPLUG_CPU=y$' "$1"
42} 41}