Skip to content

Commit a0edd47

Browse files
committed
torture: Rename RCU_QEMU_INTERACTIVE to TORTURE_QEMU_INTERACTIVE
This commit makes the torture scripts a bit more RCU-independent. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent 805ffee commit a0edd47

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎tools/testing/selftests/rcutorture/bin/functions.sh‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ identify_qemu () {
107107
# identify_qemu_append qemu-cmd
108108
#
109109
# Output arguments for the qemu "-append" string based on CPU type
110-
# and the RCU_QEMU_INTERACTIVE environment variable.
110+
# and the TORTURE_QEMU_INTERACTIVE environment variable.
111111
identify_qemu_append () {
112112
case "$1" in
113113
qemu-system-x86_64|qemu-system-i386)
114114
echo noapic selinux=0 initcall_debug debug
115115
;;
116116
esac
117-
if test -n "$RCU_QEMU_INTERACTIVE"
117+
if test -n "$TORTURE_QEMU_INTERACTIVE"
118118
then
119119
echo root=/dev/sda
120120
else
@@ -125,25 +125,25 @@ identify_qemu_append () {
125125
# identify_qemu_args qemu-cmd serial-file
126126
#
127127
# Output arguments for qemu arguments based on the RCU_QEMU_MAC
128-
# and RCU_QEMU_INTERACTIVE environment variables.
128+
# and TORTURE_QEMU_INTERACTIVE environment variables.
129129
identify_qemu_args () {
130130
case "$1" in
131131
qemu-system-x86_64|qemu-system-i386)
132132
;;
133133
qemu-system-ppc64)
134134
echo -enable-kvm -M pseries -cpu POWER7 -nodefaults
135135
echo -device spapr-vscsi
136-
if test -n "$RCU_QEMU_INTERACTIVE" -a -n "$RCU_QEMU_MAC"
136+
if test -n "$TORTURE_QEMU_INTERACTIVE" -a -n "$RCU_QEMU_MAC"
137137
then
138138
echo -device spapr-vlan,netdev=net0,mac=$RCU_QEMU_MAC
139139
echo -netdev bridge,br=br0,id=net0
140-
elif test -n "$RCU_QEMU_INTERACTIVE"
140+
elif test -n "$TORTURE_QEMU_INTERACTIVE"
141141
then
142142
echo -net nic -net user
143143
fi
144144
;;
145145
esac
146-
if test -n "$RCU_QEMU_INTERACTIVE"
146+
if test -n "$TORTURE_QEMU_INTERACTIVE"
147147
then
148148
echo -monitor stdio -serial pty -S
149149
else

‎tools/testing/selftests/rcutorture/bin/kvm.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ do
114114
shift
115115
;;
116116
--interactive)
117-
RCU_QEMU_INTERACTIVE=1; export RCU_QEMU_INTERACTIVE
117+
TORTURE_QEMU_INTERACTIVE=1; export TORTURE_QEMU_INTERACTIVE
118118
;;
119119
--kmake-arg)
120120
checkarg --kmake-arg "(kernel make arguments)" $# "$2" '.*' '^error$'
@@ -378,7 +378,7 @@ then
378378
echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD"
379379
echo TORTURE_KMAKE_ARG="$TORTURE_KMAKE_ARG; export TORTURE_KMAKE_ARG"
380380
echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
381-
echo RCU_QEMU_INTERACTIVE="$RCU_QEMU_INTERACTIVE; export RCU_QEMU_INTERACTIVE"
381+
echo TORTURE_QEMU_INTERACTIVE="$TORTURE_QEMU_INTERACTIVE; export TORTURE_QEMU_INTERACTIVE"
382382
echo RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC"
383383
echo "mkdir -p "$resdir" || :"
384384
echo "mkdir $resdir/$ds"

0 commit comments

Comments
 (0)