summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/part-rename16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/mv/part-rename b/tests/mv/part-rename
index f6da1dc4d..9ce1e89df 100755
--- a/tests/mv/part-rename
+++ b/tests/mv/part-rename
@@ -8,27 +8,27 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-pwd=`pwd`
-tmp=part-ren.$$
-trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
. $srcdir/setup
. $srcdir/../envvar-check
+pwd=`pwd`
+t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
+trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
+trap '(exit $?); exit' 1 2 13 15
+
if test -z "$other_partition_tmpdir"; then
(exit 77); exit
fi
t0="$t0 $other_partition_tmpdir"
framework_failure=0
-mkdir $tmp || framework_failure=1
+mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir foo || framework_failure=1
if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
+ echo '$0: failure in testing framework' 1>&2
+ (exit 1); exit
fi
fail=0