diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-10-04 13:04:15 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-03 22:26:40 -0500 |
commit | edae018d95a00a9629de2d78b68d76f662cf89da (patch) | |
tree | 510f19324d44a1d4ce92e09ba4b2511149f0cddf | |
parent | f8396fed2c6252771182a086fbbb4cdef83449c2 (diff) |
rcutorture: Remove obsolete kversion param in kvm.sh
Now that we have removed configs based on kernel version, we can also remove the
kversion parameter in kvm.sh.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 2 | ||||
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm.sh | 19 |
2 files changed, 6 insertions, 15 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh index e0f896999d6b..8ca9f21f2efc 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | |||
@@ -45,7 +45,7 @@ trap 'rm -rf $T' 0 | |||
45 | touch $T | 45 | touch $T |
46 | 46 | ||
47 | . $KVM/bin/functions.sh | 47 | . $KVM/bin/functions.sh |
48 | . $KVPATH/ver_functions.sh | 48 | . $CONFIGFRAG/ver_functions.sh |
49 | 49 | ||
50 | config_template=${1} | 50 | config_template=${1} |
51 | config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'` | 51 | config_dir=`echo $config_template | sed -e 's,/[^/]*$,,'` |
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index e527dc952eb0..368d64ac779e 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -47,7 +47,6 @@ resdir="" | |||
47 | configs="" | 47 | configs="" |
48 | cpus=0 | 48 | cpus=0 |
49 | ds=`date +%Y.%m.%d-%H:%M:%S` | 49 | ds=`date +%Y.%m.%d-%H:%M:%S` |
50 | kversion="" | ||
51 | 50 | ||
52 | . functions.sh | 51 | . functions.sh |
53 | 52 | ||
@@ -64,7 +63,6 @@ usage () { | |||
64 | echo " --duration minutes" | 63 | echo " --duration minutes" |
65 | echo " --interactive" | 64 | echo " --interactive" |
66 | echo " --kmake-arg kernel-make-arguments" | 65 | echo " --kmake-arg kernel-make-arguments" |
67 | echo " --kversion vN.NN" | ||
68 | echo " --mac nn:nn:nn:nn:nn:nn" | 66 | echo " --mac nn:nn:nn:nn:nn:nn" |
69 | echo " --no-initrd" | 67 | echo " --no-initrd" |
70 | echo " --qemu-args qemu-system-..." | 68 | echo " --qemu-args qemu-system-..." |
@@ -128,11 +126,6 @@ do | |||
128 | TORTURE_KMAKE_ARG="$2" | 126 | TORTURE_KMAKE_ARG="$2" |
129 | shift | 127 | shift |
130 | ;; | 128 | ;; |
131 | --kversion) | ||
132 | checkarg --kversion "(kernel version)" $# "$2" '^v[0-9.]*$' '^error' | ||
133 | kversion=$2 | ||
134 | shift | ||
135 | ;; | ||
136 | --mac) | 129 | --mac) |
137 | 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 |
138 | TORTURE_QEMU_MAC=$2 | 131 | TORTURE_QEMU_MAC=$2 |
@@ -170,11 +163,10 @@ do | |||
170 | done | 163 | done |
171 | 164 | ||
172 | CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG | 165 | CONFIGFRAG=${KVM}/configs/${TORTURE_SUITE}; export CONFIGFRAG |
173 | KVPATH=${CONFIGFRAG}/$kversion; export KVPATH | ||
174 | 166 | ||
175 | if test -z "$configs" | 167 | if test -z "$configs" |
176 | then | 168 | then |
177 | configs="`cat $CONFIGFRAG/$kversion/CFLIST`" | 169 | configs="`cat $CONFIGFRAG/CFLIST`" |
178 | fi | 170 | fi |
179 | 171 | ||
180 | if test -z "$resdir" | 172 | if test -z "$resdir" |
@@ -186,10 +178,10 @@ fi | |||
186 | touch $T/cfgcpu | 178 | touch $T/cfgcpu |
187 | for CF in $configs | 179 | for CF in $configs |
188 | do | 180 | do |
189 | if test -f "$CONFIGFRAG/$kversion/$CF" | 181 | if test -f "$CONFIGFRAG/$CF" |
190 | then | 182 | then |
191 | cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$kversion/$CF` | 183 | cpu_count=`configNR_CPUS.sh $CONFIGFRAG/$CF` |
192 | cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$kversion/$CF" "$cpu_count"` | 184 | cpu_count=`configfrag_boot_cpus "$TORTURE_BOOTARGS" "$CONFIGFRAG/$CF" "$cpu_count"` |
193 | echo $CF $cpu_count >> $T/cfgcpu | 185 | echo $CF $cpu_count >> $T/cfgcpu |
194 | else | 186 | else |
195 | echo "The --configs file $CF does not exist, terminating." | 187 | echo "The --configs file $CF does not exist, terminating." |
@@ -252,7 +244,6 @@ END { | |||
252 | cat << ___EOF___ > $T/script | 244 | cat << ___EOF___ > $T/script |
253 | CONFIGFRAG="$CONFIGFRAG"; export CONFIGFRAG | 245 | CONFIGFRAG="$CONFIGFRAG"; export CONFIGFRAG |
254 | KVM="$KVM"; export KVM | 246 | KVM="$KVM"; export KVM |
255 | KVPATH="$KVPATH"; export KVPATH | ||
256 | PATH="$PATH"; export PATH | 247 | PATH="$PATH"; export PATH |
257 | TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE | 248 | TORTURE_BOOT_IMAGE="$TORTURE_BOOT_IMAGE"; export TORTURE_BOOT_IMAGE |
258 | TORTURE_BUILDONLY="$TORTURE_BUILDONLY"; export TORTURE_BUILDONLY | 249 | TORTURE_BUILDONLY="$TORTURE_BUILDONLY"; export TORTURE_BUILDONLY |
@@ -285,7 +276,7 @@ then | |||
285 | fi | 276 | fi |
286 | ___EOF___ | 277 | ___EOF___ |
287 | awk < $T/cfgcpu.pack \ | 278 | awk < $T/cfgcpu.pack \ |
288 | -v CONFIGDIR="$CONFIGFRAG/$kversion/" \ | 279 | -v CONFIGDIR="$CONFIGFRAG/" \ |
289 | -v KVM="$KVM" \ | 280 | -v KVM="$KVM" \ |
290 | -v ncpus=$cpus \ | 281 | -v ncpus=$cpus \ |
291 | -v rd=$resdir/$ds/ \ | 282 | -v rd=$resdir/$ds/ \ |