diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-08-31 00:33:49 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-10-09 23:26:09 +0200 |
commit | b038c58bd258522d9cde6619d730ebdb1f7be198 (patch) | |
tree | 85da631bd0baa455a1a7f6f61a982bab344ec832 /tools/testing/selftests/rcutorture/bin/kvm-build.sh | |
parent | rcutorture: Dump writer stack if stalled (diff) | |
download | linux-b038c58bd258522d9cde6619d730ebdb1f7be198.tar.xz linux-b038c58bd258522d9cde6619d730ebdb1f7be198.zip |
torture: Provide TMPDIR environment variable to specify tmpdir
Both rcutorture and locktorture currently place temporary files in /tmp,
in keeping with decades-long tradition. However, sometimes it is useful
to specify an alternative temporary directory, for example, for space
or performance reasons. This commit therefore causes the torture-test
scripting to use the path specified in the TMPDIR environment variable,
or to fall back to traditional /tmp if this variable is not set.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/kvm-build.sh')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/kvm-build.sh b/tools/testing/selftests/rcutorture/bin/kvm-build.sh index 46752c164676..fb66d0173638 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-build.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-build.sh @@ -35,7 +35,7 @@ then exit 1 fi -T=/tmp/test-linux.sh.$$ +T=${TMPDIR-/tmp}/test-linux.sh.$$ trap 'rm -rf $T' 0 mkdir $T |