- wait_client_evicted $SINGLEMDS $MDS_NEXP $((TIMEOUT * 3)) || \
- error "lightweight client not evicted by mds"
+ touch -c $DIR2/$tfile || true
+ evicted=`dmesg | awk '/test 106/ {start = 1;}
+ /This client was evicted by .*MDT0000/ {
+ if (start) {
+ print;
+ }
+ }'`
+ [ -z "$evicted" ] && error "lightweight client not evicted by mds"