diff options
author | SeongJae Park <sj38.park@gmail.com> | 2017-11-03 06:17:24 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-12-11 12:18:25 -0500 |
commit | 512e3bd0b554eb25d8816ab3954e0f39c98e8183 (patch) | |
tree | d79edb0447b1050542a405415d196b9fb2958c92 /tools | |
parent | 8dcd6f3fe206c0bb8996e59386a04027b1c2fb9b (diff) |
rcutorture/kvm.sh: Support execution from any directory
The 'kvm.sh' rcutorture script requires that it be invoked from the top
of Linux-kernel source tree. It is just a subtle restriction, but users
using it for the first time could forget the restriction and be confused.
Moreover, it makes commands a little longer, which can be frustrating.
This commit therefore lets users invoke the script from any location.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index 64d96fc3dd62..d2a4fd94de6a 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh | |||
@@ -1,8 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # | 2 | # |
3 | # Run a series of 14 tests under KVM. These are not particularly | 3 | # Run a series of 14 tests under KVM. These are not particularly |
4 | # well-selected or well-tuned, but are the current set. Run from the | 4 | # well-selected or well-tuned, but are the current set. |
5 | # top level of the source tree. | ||
6 | # | 5 | # |
7 | # Edit the definitions below to set the locations of the various directories, | 6 | # Edit the definitions below to set the locations of the various directories, |
8 | # as well as the test duration. | 7 | # as well as the test duration. |
@@ -34,6 +33,8 @@ T=${TMPDIR-/tmp}/kvm.sh.$$ | |||
34 | trap 'rm -rf $T' 0 | 33 | trap 'rm -rf $T' 0 |
35 | mkdir $T | 34 | mkdir $T |
36 | 35 | ||
36 | cd `dirname $scriptname`/../../../../../ | ||
37 | |||
37 | dur=$((30*60)) | 38 | dur=$((30*60)) |
38 | dryrun="" | 39 | dryrun="" |
39 | KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM | 40 | KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM |