diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-25 04:10:03 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-25 04:10:03 +0000 |
commit | d26d2b7e92852446e448fcf2bef7aebd2c36c8c0 (patch) | |
tree | 362bf8dda30a7758bee6fa2ee7d7e1f9c0861c11 | |
parent | 55e96df06b559a7623d59acb4f8d3bea4bf2d6ef (diff) | |
download | FreeBSD-src-d26d2b7e92852446e448fcf2bef7aebd2c36c8c0.zip FreeBSD-src-d26d2b7e92852446e448fcf2bef7aebd2c36c8c0.tar.gz |
Remove all explicit references to $TMPDIR
-rwxr-xr-x | sbin/geom/class/tests/raid3/10_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/11_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/2_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/3_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/4_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/5_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/6_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/7_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/8_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/raid3/9_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/shsec/2_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/stripe/2_test.sh | 4 | ||||
-rwxr-xr-x | sbin/geom/class/tests/uzip/conf.sh | 2 |
13 files changed, 25 insertions, 25 deletions
diff --git a/sbin/geom/class/tests/raid3/10_test.sh b/sbin/geom/class/tests/raid3/10_test.sh index 73adbfe..edd827d 100755 --- a/sbin/geom/class/tests/raid3/10_test.sh +++ b/sbin/geom/class/tests/raid3/10_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/11_test.sh b/sbin/geom/class/tests/raid3/11_test.sh index 748fdb9..0407261 100755 --- a/sbin/geom/class/tests/raid3/11_test.sh +++ b/sbin/geom/class/tests/raid3/11_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/2_test.sh b/sbin/geom/class/tests/raid3/2_test.sh index 83fe4dc..22ebd38 100755 --- a/sbin/geom/class/tests/raid3/2_test.sh +++ b/sbin/geom/class/tests/raid3/2_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/3_test.sh b/sbin/geom/class/tests/raid3/3_test.sh index 0b00357..f068b06 100755 --- a/sbin/geom/class/tests/raid3/3_test.sh +++ b/sbin/geom/class/tests/raid3/3_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/4_test.sh b/sbin/geom/class/tests/raid3/4_test.sh index f45a9b8..810f13d 100755 --- a/sbin/geom/class/tests/raid3/4_test.sh +++ b/sbin/geom/class/tests/raid3/4_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/5_test.sh b/sbin/geom/class/tests/raid3/5_test.sh index cfe904f..7bc8d42 100755 --- a/sbin/geom/class/tests/raid3/5_test.sh +++ b/sbin/geom/class/tests/raid3/5_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/6_test.sh b/sbin/geom/class/tests/raid3/6_test.sh index d9d6b97..20bf192 100755 --- a/sbin/geom/class/tests/raid3/6_test.sh +++ b/sbin/geom/class/tests/raid3/6_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/7_test.sh b/sbin/geom/class/tests/raid3/7_test.sh index 189b900..23666f8 100755 --- a/sbin/geom/class/tests/raid3/7_test.sh +++ b/sbin/geom/class/tests/raid3/7_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/8_test.sh b/sbin/geom/class/tests/raid3/8_test.sh index c0717c8..2eb9b1a 100755 --- a/sbin/geom/class/tests/raid3/8_test.sh +++ b/sbin/geom/class/tests/raid3/8_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/raid3/9_test.sh b/sbin/geom/class/tests/raid3/9_test.sh index 866c5d7..0ef010a 100755 --- a/sbin/geom/class/tests/raid3/9_test.sh +++ b/sbin/geom/class/tests/raid3/9_test.sh @@ -8,8 +8,8 @@ echo "1..1" ddbs=2048 nblocks1=1024 nblocks2=`expr $nblocks1 / \( $ddbs / 512 \)` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 us0=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 us1=$(attach_md -t malloc -s $(expr $nblocks1 + 1)) || exit 1 diff --git a/sbin/geom/class/tests/shsec/2_test.sh b/sbin/geom/class/tests/shsec/2_test.sh index 506b34b..9dfe36a 100755 --- a/sbin/geom/class/tests/shsec/2_test.sh +++ b/sbin/geom/class/tests/shsec/2_test.sh @@ -7,8 +7,8 @@ echo "1..4" nblocks1=1024 nblocks2=`expr $nblocks1 + 1` -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 dd if=/dev/random of=${src} count=$nblocks1 >/dev/null 2>&1 diff --git a/sbin/geom/class/tests/stripe/2_test.sh b/sbin/geom/class/tests/stripe/2_test.sh index 9101342..f6e11f5 100755 --- a/sbin/geom/class/tests/stripe/2_test.sh +++ b/sbin/geom/class/tests/stripe/2_test.sh @@ -6,8 +6,8 @@ echo "1..1" tsize=3 -src=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 -dst=`mktemp $TMPDIR/$base.XXXXXX` || exit 1 +src=`mktemp $base.XXXXXX` || exit 1 +dst=`mktemp $base.XXXXXX` || exit 1 dd if=/dev/random of=${src} bs=1m count=$tsize >/dev/null 2>&1 diff --git a/sbin/geom/class/tests/uzip/conf.sh b/sbin/geom/class/tests/uzip/conf.sh index a0204d6..5494d09 100755 --- a/sbin/geom/class/tests/uzip/conf.sh +++ b/sbin/geom/class/tests/uzip/conf.sh @@ -3,7 +3,7 @@ class="uzip" base=`basename $0` -mntpoint=$(mktemp -d $TMPDIR/tmp.XXXXXX) || exit +mntpoint=$(mktemp -d tmp.XXXXXX) || exit uzip_test_cleanup() { |