]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use trap stuff from sample-test
authorJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 10:19:36 +0000 (10:19 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 10:19:36 +0000 (10:19 +0000)
tests/mv/part-rename

index cd2e85a95dddddcf2d8f48c13419ae63a7540492..f6da1dc4dd088cfb1b657b81293f74597cc87627 100755 (executable)
@@ -10,7 +10,7 @@ fi
 
 pwd=`pwd`
 tmp=part-ren.$$
-trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp $other_partition_tmpdir && exit $status' 0
+trap 'status=$?; cd $pwd; exec 1>&2; rm -rf $tmp && exit $status' 0
 trap '(exit $?); exit' 1 2 13 15
 
 . $srcdir/setup
@@ -19,6 +19,7 @@ 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