tests: extractloop: use tmp dir based on script name
This is how this should be done as well in future test scripts.
This commit is contained in:
parent
a6a7b424f8
commit
6ffd07f02a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user