diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-26 19:41:18 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-05-14 12:45:48 -0400 |
commit | 58f724f741716b9321664f0d2d2d9cef91fb46f4 (patch) | |
tree | 4c39e9830596145e426cb3ebfef43a4c75c63a0d /tools/testing | |
parent | a0edd47ca4f0ffa33df137c13a08189bae66bcc3 (diff) |
torture: Rename RCU_QEMU_MAC to TORTURE_QEMU_MAC
This commit makes the torture scripts a bit more RCU-independent.
It also drops an redundant "export" statement.
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 | 6 | ||||
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/kvm.sh | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh index 623939cf814e..41fb52b805e4 100644 --- a/tools/testing/selftests/rcutorture/bin/functions.sh +++ b/tools/testing/selftests/rcutorture/bin/functions.sh | |||
@@ -124,7 +124,7 @@ identify_qemu_append () { | |||
124 | 124 | ||
125 | # identify_qemu_args qemu-cmd serial-file | 125 | # identify_qemu_args qemu-cmd serial-file |
126 | # | 126 | # |
127 | # Output arguments for qemu arguments based on the RCU_QEMU_MAC | 127 | # Output arguments for qemu arguments based on the TORTURE_QEMU_MAC |
128 | # and TORTURE_QEMU_INTERACTIVE environment variables. | 128 | # and TORTURE_QEMU_INTERACTIVE environment variables. |
129 | identify_qemu_args () { | 129 | identify_qemu_args () { |
130 | case "$1" in | 130 | case "$1" in |
@@ -133,9 +133,9 @@ identify_qemu_args () { | |||
133 | qemu-system-ppc64) | 133 | qemu-system-ppc64) |
134 | echo -enable-kvm -M pseries -cpu POWER7 -nodefaults | 134 | echo -enable-kvm -M pseries -cpu POWER7 -nodefaults |
135 | echo -device spapr-vscsi | 135 | echo -device spapr-vscsi |
136 | if test -n "$TORTURE_QEMU_INTERACTIVE" -a -n "$RCU_QEMU_MAC" | 136 | if test -n "$TORTURE_QEMU_INTERACTIVE" -a -n "$TORTURE_QEMU_MAC" |
137 | then | 137 | then |
138 | echo -device spapr-vlan,netdev=net0,mac=$RCU_QEMU_MAC | 138 | echo -device spapr-vlan,netdev=net0,mac=$TORTURE_QEMU_MAC |
139 | echo -netdev bridge,br=br0,id=net0 | 139 | echo -netdev bridge,br=br0,id=net0 |
140 | elif test -n "$TORTURE_QEMU_INTERACTIVE" | 140 | elif test -n "$TORTURE_QEMU_INTERACTIVE" |
141 | then | 141 | then |
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index c7d925bcd5b3..886f97d28784 100644 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -128,7 +128,7 @@ do | |||
128 | ;; | 128 | ;; |
129 | --mac) | 129 | --mac) |
130 | checkarg --mac "(MAC address)" $# "$2" '^\([0-9a-fA-F]\{2\}:\)\{5\}[0-9a-fA-F]\{2\}$' error | 130 | checkarg --mac "(MAC address)" $# "$2" '^\([0-9a-fA-F]\{2\}:\)\{5\}[0-9a-fA-F]\{2\}$' error |
131 | RCU_QEMU_MAC=$2; export RCU_QEMU_MAC | 131 | TORTURE_QEMU_MAC=$2 |
132 | shift | 132 | shift |
133 | ;; | 133 | ;; |
134 | --no-initrd) | 134 | --no-initrd) |
@@ -379,7 +379,7 @@ then | |||
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 RCU_QEMU_CMD="$RCU_QEMU_CMD; export RCU_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 RCU_QEMU_MAC="$RCU_QEMU_MAC; export RCU_QEMU_MAC" | 382 | echo TORTURE_QEMU_MAC="$TORTURE_QEMU_MAC; export TORTURE_QEMU_MAC" |
383 | echo "mkdir -p "$resdir" || :" | 383 | echo "mkdir -p "$resdir" || :" |
384 | echo "mkdir $resdir/$ds" | 384 | echo "mkdir $resdir/$ds" |
385 | cat $T/script | 385 | cat $T/script |