summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/rcutorture/bin/configcheck.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-08-31 01:33:49 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-10-10 00:26:09 +0300
commitb038c58bd258522d9cde6619d730ebdb1f7be198 (patch)
tree85da631bd0baa455a1a7f6f61a982bab344ec832 /tools/testing/selftests/rcutorture/bin/configcheck.sh
parent0032f4e889764d22ccccb6a15742071d6f0d1f5a (diff)
downloadlinux-b038c58bd258522d9cde6619d730ebdb1f7be198.tar.xz
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/configcheck.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/configcheck.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/configcheck.sh b/tools/testing/selftests/rcutorture/bin/configcheck.sh
index 70fca318a82b..197deece7c7c 100755
--- a/tools/testing/selftests/rcutorture/bin/configcheck.sh
+++ b/tools/testing/selftests/rcutorture/bin/configcheck.sh
@@ -19,7 +19,7 @@
#
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-T=/tmp/abat-chk-config.sh.$$
+T=${TMPDIR-/tmp}/abat-chk-config.sh.$$
trap 'rm -rf $T' 0
mkdir $T