Whamcloud - gitweb
Branch b1_8_gate
authoradilger <adilger>
Tue, 26 Aug 2008 07:27:56 +0000 (07:27 +0000)
committeradilger <adilger>
Tue, 26 Aug 2008 07:27:56 +0000 (07:27 +0000)
Fix incorrect error checking in CHROOT case, and incorrect error handling
that hid the problem.
b=16798

lustre/tests/rundbench

index ce51eaf..200dad2 100755 (executable)
@@ -48,7 +48,7 @@ if [ "x$CHROOT" == "xyes" ]; then
        cp `which dbench` $DIR
        LIBS71=$(ldd $DIR/dbench|sed -e 's/\t*//' -e 's/.*=> //' -e 's/ .*//' -e 's/^\///')
        (cd / && tar chf - $LIBS71) | (cd $DIR && tar xvf -)
-       [ $? = 0 ] && ( echo "can't copy libs $LIBS71 to $DIR" && exit 1 )
+       [ $? != 0 ] && echo "can't copy libs $LIBS71 to $DIR" && exit 1
        RUN="chroot $DIR"
        PREFIX="in"
        PATH=.:/:$PATH