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")"
|
cd "$(dirname "$0")"
|
||||||
MD5="$PWD/linux-3.0.md5sums"
|
MD5="$PWD/linux-3.0.md5sums"
|
||||||
|
MYNAME=$(basename "$0")
|
||||||
|
|
||||||
# Setup dirs
|
# Setup dirs
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
|
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
|
CSV=$CRYPT.csv
|
||||||
MNT=$CRYPT.mnt
|
MNT=$CRYPT.mnt
|
||||||
mkdir $MNT
|
mkdir $MNT
|
||||||
|
Loading…
Reference in New Issue
Block a user