Proper messages for skipped tests.
[rsync/rsync.git] / testsuite / rsync.fns
index 5ded919..4682b4f 100644 (file)
@@ -25,7 +25,7 @@ LOG=${TMP}/log
 RSYNC="$rsync_bin"
 
 # Berkley's nice.
-PATH="$PATH:/usr/ucb/bin"
+PATH="$PATH:/usr/ucb"
 
 runtest() {
     echo $ECHO_N "Test $1: $ECHO_C"
@@ -137,6 +137,11 @@ makepath () {
 # Run a test (in '$1') then compare directories $2 and $3 to see if
 # there are any difference.  If there are, explain them.
 
+# So normally basically $1 should be an rsync command, and $2 and $3
+# the source and destination directories.  This is only good when you
+# expect to transfer the whole directory exactly as is.  If some files
+# should be excluded, you might need to use something else.
+
 checkit() {
     failed=
 
@@ -233,6 +238,7 @@ test_fail() {
 
 test_skipped() {
     echo "$@" >&2
+    echo "$@" > "$TMP/whyskipped"
     exit 77
 }