aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-10-01 13:14:09 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 13:11:14 -0500
commit2bcdf4e31ae4e215b1e61831d9defa3632cb7bd3 (patch)
treefdef45da86a94b9124ab76bb4296e1627be12445
parent14db63f575db5e27a733f873e17930f3071076ef (diff)
rcutorture: Eliminate --rcu-kvm argument
The --rcu-kvm argument was intended to allow the scripts to live in an alternate location. Unfortunately, this prevents the kvm.sh script from using common functions until after it finished parsing arguments, because it doesn't know where to find them until then. However, "cp -a" and "ln -s" work pretty well, so lack of an --rcu-kvm argument can be easily worked around. This commit therefore removes this argument. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Greg KH <gregkh@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/rcutorture/bin/kvm.sh15
1 files changed, 1 insertions, 14 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 89164c245ca1..2af549491f23 100644
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -46,7 +46,6 @@ usage () {
46 echo " --duration minutes" 46 echo " --duration minutes"
47 echo " --kversion vN.NN" 47 echo " --kversion vN.NN"
48 echo " --qemu-cmd qemu-system-..." 48 echo " --qemu-cmd qemu-system-..."
49 echo " --rcu-kvm absolute-pathname"
50 echo " --results absolute-pathname" 49 echo " --results absolute-pathname"
51 echo " --relbuilddir relative-pathname" 50 echo " --relbuilddir relative-pathname"
52 exit 1 51 exit 1
@@ -107,19 +106,6 @@ do
107 RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD 106 RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD
108 shift 107 shift
109 ;; 108 ;;
110 --rcu-kvm)
111 checkarg --rcu-kvm "(absolute pathname)" "$#" "$2" '^/' error
112 KVM=$2; export KVM
113 if -z "$gotbuilddir"
114 then
115 builddir=${KVM}/b1
116 fi
117 if -n "$gotrelbuilddir"
118 then
119 builddir=${KVM}/${relbuilddir}
120 fi
121 shift
122 ;;
123 --relbuilddir) 109 --relbuilddir)
124 checkarg --relbuilddir "(relative pathname)" "$#" "$2" '^[^/]*$' '^--' 110 checkarg --relbuilddir "(relative pathname)" "$#" "$2" '^[^/]*$' '^--'
125 relbuilddir=$2 111 relbuilddir=$2
@@ -133,6 +119,7 @@ do
133 shift 119 shift
134 ;; 120 ;;
135 *) 121 *)
122 echo Unknown argument $1
136 usage 123 usage
137 ;; 124 ;;
138 esac 125 esac