diff options
author | Jim Meyering <jim@meyering.net> | 2002-06-16 19:18:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-06-16 19:18:22 +0000 |
commit | 6d797a5b974fe4390f817c72550c8db26243aa6e (patch) | |
tree | 2277438940027c8b92dc05afabe30632cc242b79 | |
parent | 3d16018d2e5c670087d8ade778c78b2b402ab690 (diff) | |
download | coreutils-6d797a5b974fe4390f817c72550c8db26243aa6e.tar.xz |
use newer testing framework
-rwxr-xr-x | tests/mv/part-rename | 16 |
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 |