This test case sometime fails. Because "dmsetup remove error-test" may fail when some writeback is going on. This patch adds sync before dmsetup remove operation. Signed-off-by: Su Yanjun <suyj.fnst@xxxxxxxxxxxxxx> --- tests/generic/442 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/generic/442 b/tests/generic/442 index fe6d460..d48ca36 100755 --- a/tests/generic/442 +++ b/tests/generic/442 @@ -43,6 +43,7 @@ $here/src/fsync-err -d $here/src/dmerror $DMERROR_DEV # success, all done _dmerror_load_working_table +sync _dmerror_cleanup _scratch_mkfs > $seqres.full 2>&1 status=0 -- 2.7.4