Skip to content

Commit 5b6b4b6

Browse files
committed
torture: Allow scenario-specific Kconfig options to override CFcommon
This commit applies config_override_param() to allow scenario-specific Kconfig options to override those in CFcommon. This in turn will allow additional Kconfig options to be placed in CFcommon, for example, an option common to all but a few scenario can be placed in CFcommon and then overridden in those few scenarios. Plus this change saves one whole line of code. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 3d17ded commit 5b6b4b6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ if test -r "$config_dir/CFcommon"
6767
then
6868
echo " --- $config_dir/CFcommon" >> $resdir/ConfigFragment.input
6969
cat < $config_dir/CFcommon >> $resdir/ConfigFragment.input
70-
config_override.sh $config_dir/CFcommon $config_template > $T/Kc1
70+
cp $config_dir/CFcommon $T/Kc0
7171
else
72-
cp $config_template $T/Kc1
72+
echo > $T/Kc0
7373
fi
74-
echo " --- $config_template" >> $resdir/ConfigFragment.input
75-
cat $config_template >> $resdir/ConfigFragment.input
74+
config_override_param "$config_template" Kc0 Kc1 "`cat $config_template 2> /dev/null`"
7675
config_override_param "--kcsan options" Kc1 Kc2 "$TORTURE_KCONFIG_KCSAN_ARG"
7776
config_override_param "--kconfig argument" Kc2 Kc3 "$TORTURE_KCONFIG_ARG"
7877
cp $T/Kc3 $resdir/ConfigFragment

0 commit comments

Comments
 (0)