summaryrefslogtreecommitdiff
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 11:13:46 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 10:11:11 -0800
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 () {
#
# Returns 1 if the config fragment specifies hotplug CPU.
configfrag_hotplug_cpu () {
- cf=$1
- if test ! -r $cf
+ if test ! -r "$1"
then
- echo Unreadable config fragment $cf 1>&2
+ echo Unreadable config fragment "$1" 1>&2
exit -1
fi
- grep -q '^CONFIG_HOTPLUG_CPU=y$' $cf
+ grep -q '^CONFIG_HOTPLUG_CPU=y$' "$1"
}