From 392248186e56fb216e49a2fee0caad5a506e3dd1 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Tue, 20 Oct 2015 11:55:51 +0200 Subject: [PATCH] tests: add test for missing mirror in-sync info --- test/shell/lvconvert-mirror.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/shell/lvconvert-mirror.sh b/test/shell/lvconvert-mirror.sh index 844f8e945..029112ca9 100644 --- a/test/shell/lvconvert-mirror.sh +++ b/test/shell/lvconvert-mirror.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved. +# Copyright (C) 2010-2015 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -313,4 +313,11 @@ lvconvert --mirrorlog disk $vg/$lv1 "$dev3:0-1" check mirror $vg $lv1 "$dev3" lvremove -ff $vg +# bz1272175: check lvconvert reports progress while waiting for mirror +# to get synced +lvcreate -l2 -n $lv1 $vg +lvconvert --type mirror -i1 -m1 $vg/$lv1 | tee out +grep -e "$vg/$lv1: Converted:" out || fail "Missing sync info in foreground mode" +lvremove -ff $vg + vgremove -ff $vg -- 2.43.5