Skip to content

Commit 250da31

Browse files
committed
torture: Rename RCU_QEMU_CMD to TORTURE_QEMU_CMD
This commit makes the torture scripts a bit more RCU-independent. It also removes a redundant export of this same shell variable. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent d1b1e51 commit 250da31

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ configfrag_hotplug_cpu () {
7979
# identify_qemu builddir
8080
#
8181
# Returns our best guess as to which qemu command is appropriate for
82-
# the kernel at hand. Override with the RCU_QEMU_CMD environment variable.
82+
# the kernel at hand. Override with the TORTURE_QEMU_CMD environment variable.
8383
identify_qemu () {
8484
local u="`file "$1"`"
85-
if test -n "$RCU_QEMU_CMD"
85+
if test -n "$TORTURE_QEMU_CMD"
8686
then
87-
echo $RCU_QEMU_CMD
87+
echo $TORTURE_QEMU_CMD
8888
elif echo $u | grep -q x86-64
8989
then
9090
echo qemu-system-x86_64
@@ -98,7 +98,7 @@ identify_qemu () {
9898
echo Cannot figure out what qemu command to use! 1>&2
9999
echo file $1 output: $u
100100
# Usually this will be one of /usr/bin/qemu-system-*
101-
# Use RCU_QEMU_CMD environment variable or appropriate
101+
# Use TORTURE_QEMU_CMD environment variable or appropriate
102102
# argument to top-level script.
103103
exit 1
104104
fi

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ do
141141
;;
142142
--qemu-cmd)
143143
checkarg --qemu-cmd "(qemu-system-...)" $# "$2" 'qemu-system-' '^--'
144-
RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD
144+
TORTURE_QEMU_CMD="$2"
145145
shift
146146
;;
147147
--results)
@@ -377,7 +377,7 @@ then
377377
echo TORTURE_BUILDONLY="$TORTURE_BUILDONLY; export TORTURE_BUILDONLY"
378378
echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD"
379379
echo TORTURE_KMAKE_ARG="$TORTURE_KMAKE_ARG; export TORTURE_KMAKE_ARG"
380-
echo RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_QEMU_CMD"
380+
echo TORTURE_QEMU_CMD="$TORTURE_QEMU_CMD; export TORTURE_QEMU_CMD"
381381
echo TORTURE_QEMU_INTERACTIVE="$TORTURE_QEMU_INTERACTIVE; export TORTURE_QEMU_INTERACTIVE"
382382
echo TORTURE_QEMU_MAC="$TORTURE_QEMU_MAC; export TORTURE_QEMU_MAC"
383383
echo "mkdir -p "$resdir" || :"

0 commit comments

Comments
 (0)