From: Jim Meyering Date: Sat, 21 Feb 1998 11:28:46 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-3_16m~23 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ccaf565665c6f5012649e214297d2b7c35cecbb1;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/mv/setup b/tests/mv/setup index 907e5176eb..94a3c67f96 100755 --- a/tests/mv/setup +++ b/tests/mv/setup @@ -7,21 +7,15 @@ : ${DF=df} : ${MKDIR=mkdir} -# Try these: -candidate_tmp_dirs=" - $TMPDIR - /tmp - /var/tmp - /usr/tmp - $HOME -" +# Try these +: ${CANDIDATE_TMP_DIRS="$TMPDIR /tmp /var/tmp /usr/tmp $HOME"} other_partition_tmpdir= # WARNING: using sed like this to extract the mount point will fail # if the mount point name contains `% '. dot_mount_point=`$DF --no-sync -P . | sed -n '2s/.*% *//p'` -for d in $candidate_tmp_dirs; do +for d in $CANDIDATE_TMP_DIRS; do d_mount_point=`$DF --no-sync -P $d | sed -n '2s/.*% *//p'` # Same partition? Skip it. @@ -34,3 +28,13 @@ for d in $candidate_tmp_dirs; do fi done + +if test -z $other_partition_tmpdir; then + cat <&2 +This test requires a writable directory on a different disk partition, +and I couldn\'t find one. I tried these defaults: + $CANDIDATE_TMP_DIRS +Set your environment variable CANDIDATE_TMP_DIRS to make this test use +use a different list. +EOF +fi