diff options
author | Jakob Unterwurzacher | 2016-09-24 20:38:05 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-09-25 16:43:17 +0200 |
commit | 6ffd07f02aaf75f9a6a75982fd8c8cd3f279701b (patch) | |
tree | 317818264dc19e717d42d0f7833779bb5a26a26f /tests | |
parent | a6a7b424f8e8a0f8ddd1c94b7463250ef1337811 (diff) |
tests: extractloop: use tmp dir based on script name
This is how this should be done as well in future test scripts.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/stress_tests/extractloop.bash | 3 |
1 files changed, 2 insertions, 1 deletions
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 |