Whamcloud - gitweb
LU-7151 tests: fix sanity test_205 on SLES12 26/17826/6
authorYang Sheng <yang.sheng@intel.com>
Tue, 5 Jan 2016 15:18:04 +0000 (23:18 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Feb 2016 22:13:39 +0000 (22:13 +0000)
Invoke cancel_lru_locks to avoid read from cache.

Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Change-Id: I46c96629fbba8439439b653ef596c3fdbc96e80c
Reviewed-on: http://review.whamcloud.com/17826
Tested-by: Jenkins
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh

index f700c07..61d6591 100755 (executable)
@@ -11791,6 +11791,7 @@ test_205() { # Job stats
        cmd="dd if=/dev/zero of=$DIR/$tfile bs=1M count=1 oflag=sync"
        verify_jobstats "$cmd" "ost1"
        # read
+       cancel_lru_locks osc
        cmd="dd if=$DIR/$tfile of=/dev/null bs=1M count=1 iflag=direct"
        verify_jobstats "$cmd" "ost1"
        # truncate