Whamcloud - gitweb
- don't try and import links or files that aren't globally readable in
authorzab <zab>
Sat, 20 Mar 2004 00:58:02 +0000 (00:58 +0000)
committerzab <zab>
Sat, 20 Mar 2004 00:58:02 +0000 (00:58 +0000)
  test 99.  Doing so make's cvs 1.11.1p1 exit(1).  with this sanity
  passes on x86-64 again.

lustre/tests/sanity.sh

index ca53e60..b5d59bc 100644 (file)
@@ -1850,7 +1850,12 @@ run_test 99a "cvs init ========================================="
 test_99b() {
        [ ! -d $DIR/d99cvsroot ] && test_99a
        cd /etc/init.d
-       $RUNAS cvs -d $DIR/d99cvsroot import -m "nomesg" d99reposname vtag rtag
+       # some versions of cvs import exit(1) when asked to import links or
+       # files they can't read.  ignore those files.
+       TOIGNORE=$(find . -type l -printf '-I %f\n' -o \
+                       ! -perm +4 -printf '-I %f\n')
+       $RUNAS cvs -d $DIR/d99cvsroot import -m "nomesg" $TOIGNORE \
+               d99reposname vtag rtag
 }
 run_test 99b "cvs import ======================================="