summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-04 08:03:56 +0000
committerJim Meyering <jim@meyering.net>2000-09-04 08:03:56 +0000
commitfbc1b0b06f63810b660084a1f66b09b4dd2a09db (patch)
tree5c18d09ca174483faa29e0cbff9c9af3ba9e4f7e /tests/mv
parent1f64389cd5882453913718677acc9c554af7abfe (diff)
downloadcoreutils-fbc1b0b06f63810b660084a1f66b09b4dd2a09db.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/part-symlink8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index 098fe7628..8077bdfac 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -90,15 +90,15 @@ for copy in cp mv; do
echo $copy_status $copy $options $args
# Normalize the program name in the error output,
+ # remove any site-dependent part of other-partition file name,
# and put brackets around the output.
- test -s .err &&
- cp --backup .err /tmp
test -s .err && {
echo '[' | tr -d '\012'
sed 's/^[^:][^:]*\(..\):/\1:/;s,'$other_partition_tmpdir/,, .err
echo ']' | tr -d '\012'
}
# Strip off all but the file names.
+ # Remove any site-dependent part of each file name.
ls="`ls -lG --ignore=.err . \
| sed \
-e '/^total /d' \
@@ -116,9 +116,11 @@ for copy in cp mv; do
# If the command failed, then it must not have changed the files.
if test $copy_status != 0; then
for f in $actual_args; do
+ test -f $f ||
+ { echo "$copy FAILED but removed $f"; continue; }
case "`cat $f`" in
"$contents") ;;
- *) echo $copy FAILED;;
+ *) echo "$copy FAILED but modified $f";;
esac
done
fi