Whamcloud - gitweb
LU-841 tests: sanity.sh 27q does not create a testing directory
authorMinh Diep <mdiep@whamcloud.com>
Wed, 7 Dec 2011 23:10:56 +0000 (15:10 -0800)
committerJohann Lombardi <johann@whamcloud.com>
Mon, 12 Dec 2011 23:10:57 +0000 (18:10 -0500)
sanity.sh 27q does not create a testing directory which causes
ENOENT errors from "ONLY=27q bash sanity.sh"
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Change-Id: Ied574286fe8ee9c1859da05cc7737fb325c5ef28
Reviewed-on: http://review.whamcloud.com/1807
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/tests/sanity.sh

index d9faae2..70fb366 100644 (file)
@@ -1072,6 +1072,7 @@ test_27q() {
        reset_enospc
        rm -f $DIR/$tdir/$tfile
 
+       mkdir -p $DIR/$tdir
        $MCREATE $DIR/$tdir/$tfile || error "mcreate $DIR/$tdir/$tfile failed"
        $TRUNCATE $DIR/$tdir/$tfile 80000000 ||error "truncate $DIR/$tdir/$tfile failed"
        $CHECKSTAT -s 80000000 $DIR/$tdir/$tfile || error "checkstat failed"