Whamcloud - gitweb
LU-13279 tests: sanityn.sh:test_20 takes DoM into account
[fs/lustre-release.git] / lustre / tests / sanity-pcc.sh
index 16515b6..093554a 100644 (file)
@@ -697,7 +697,10 @@ test_4() {
        # mmap_sanity tst7 failed on the local ext4 filesystem.
        # It seems that Lustre filesystem does special process for tst 7.
        # Thus, we exclude tst7 from the PCC testing.
-       $LUSTRE/tests/mmap_sanity -d $DIR/$tdir -m $DIR2/$tdir -e 7 ||
+       # There is a mmap problem for PCC when multiple clients read/write
+       # on a shared mmapped file. Thus, we exclude mmap_sanity tst6 from
+       # the PCC tesing.
+       $LUSTRE/tests/mmap_sanity -d $DIR/$tdir -m $DIR2/$tdir -e 6 -e 7 ||
                error "mmap_sanity test failed"
        sync; sleep 1; sync
 
@@ -1463,6 +1466,9 @@ test_20() {
                error "Failed to attach $file"
        do_facet $SINGLEAGT "echo 3 > /proc/sys/vm/drop_caches"
        check_lpcc_state $file "readwrite"
+       do_facet $SINGLEAGT "echo 3 > /proc/sys/vm/drop_caches"
+       do_facet $SINGLEAGT "echo 3 > /proc/sys/vm/drop_caches"
+       check_lpcc_state $file "readwrite"
        do_facet $SINGLEAGT $LFS pcc detach $file ||
                error "Failed to detach $file"
 }