From 6ffd07f02aaf75f9a6a75982fd8c8cd3f279701b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 24 Sep 2016 20:38:05 +0200 Subject: tests: extractloop: use tmp dir based on script name This is how this should be done as well in future test scripts. --- tests/stress_tests/extractloop.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/stress_tests/extractloop.bash b/tests/stress_tests/extractloop.bash index 09dfec8..2c139ab 100755 --- a/tests/stress_tests/extractloop.bash +++ b/tests/stress_tests/extractloop.bash @@ -13,11 +13,12 @@ set -eu cd "$(dirname "$0")" MD5="$PWD/linux-3.0.md5sums" +MYNAME=$(basename "$0") # Setup dirs cd /tmp wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz -CRYPT=$(mktemp -d /tmp/extractloop.XXX) +CRYPT=$(mktemp -d /tmp/$MYNAME.XXX) CSV=$CRYPT.csv MNT=$CRYPT.mnt mkdir $MNT -- cgit v1.2.3