diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-26 19:44:26 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-05-14 12:45:51 -0400 |
commit | 250da31e06e6e7acfc9aa574cff3567e8a77687e (patch) | |
tree | 587950c6ea99e281ee1cda2ba3ecb0593b8e8fd6 /tools/testing | |
parent | d1b1e5170c2bba2fcf089277c59259058597254c (diff) |
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>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/functions.sh | 8 | ||||
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh index 41fb52b805e4..6b2adb29b073 100644 --- a/tools/testing/selftests/rcutorture/bin/functions.sh +++ b/tools/testing/selftests/rcutorture/bin/functions.sh | |||
@@ -79,12 +79,12 @@ configfrag_hotplug_cpu () { | |||
79 | # identify_qemu builddir | 79 | # identify_qemu builddir |
80 | # | 80 | # |
81 | # Returns our best guess as to which qemu command is appropriate for | 81 | # 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. |
83 | identify_qemu () { | 83 | identify_qemu () { |
84 | local u="`file "$1"`" | 84 | local u="`file "$1"`" |
85 | if test -n "$RCU_QEMU_CMD" | 85 | if test -n "$TORTURE_QEMU_CMD" |
86 | then | 86 | then |
87 | echo $RCU_QEMU_CMD | 87 | echo $TORTURE_QEMU_CMD |
88 | elif echo $u | grep -q x86-64 | 88 | elif echo $u | grep -q x86-64 |
89 | then | 89 | then |
90 | echo qemu-system-x86_64 | 90 | echo qemu-system-x86_64 |
@@ -98,7 +98,7 @@ identify_qemu () { | |||
98 | echo Cannot figure out what qemu command to use! 1>&2 | 98 | echo Cannot figure out what qemu command to use! 1>&2 |
99 | echo file $1 output: $u | 99 | echo file $1 output: $u |
100 | # Usually this will be one of /usr/bin/qemu-system-* | 100 | # 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 |
102 | # argument to top-level script. | 102 | # argument to top-level script. |
103 | exit 1 | 103 | exit 1 |
104 | fi | 104 | fi |
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index ac06372b0755..41162012037b 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -141,7 +141,7 @@ do | |||
141 | ;; | 141 | ;; |
142 | --qemu-cmd) | 142 | --qemu-cmd) |
143 | checkarg --qemu-cmd "(qemu-system-...)" $# "$2" 'qemu-system-' '^--' | 143 | checkarg --qemu-cmd "(qemu-system-...)" $# "$2" 'qemu-system-' '^--' |
144 | RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD | 144 | TORTURE_QEMU_CMD="$2" |
145 | shift | 145 | shift |
146 | ;; | 146 | ;; |
147 | --results) | 147 | --results) |
@@ -377,7 +377,7 @@ then | |||
377 | echo TORTURE_BUILDONLY="$TORTURE_BUILDONLY; export TORTURE_BUILDONLY" | 377 | echo TORTURE_BUILDONLY="$TORTURE_BUILDONLY; export TORTURE_BUILDONLY" |
378 | echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD" | 378 | echo TORTURE_INITRD="$TORTURE_INITRD; export TORTURE_INITRD" |
379 | echo TORTURE_KMAKE_ARG="$TORTURE_KMAKE_ARG; export TORTURE_KMAKE_ARG" | 379 | 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" |
381 | echo TORTURE_QEMU_INTERACTIVE="$TORTURE_QEMU_INTERACTIVE; export TORTURE_QEMU_INTERACTIVE" | 381 | echo TORTURE_QEMU_INTERACTIVE="$TORTURE_QEMU_INTERACTIVE; export TORTURE_QEMU_INTERACTIVE" |
382 | echo TORTURE_QEMU_MAC="$TORTURE_QEMU_MAC; export TORTURE_QEMU_MAC" | 382 | echo TORTURE_QEMU_MAC="$TORTURE_QEMU_MAC; export TORTURE_QEMU_MAC" |
383 | echo "mkdir -p "$resdir" || :" | 383 | echo "mkdir -p "$resdir" || :" |