All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: check in_sync prints also dm status
@ 2020-09-13 22:16 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-09-13 22:16 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=64c8827cf3cab006b4221dea24413bb31edabf78
Commit:        64c8827cf3cab006b4221dea24413bb31edabf78
Parent:        b2978efbff3a0700254f8f206e662312c21a03d3
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat Sep 12 19:04:56 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Sep 14 00:15:14 2020 +0200

tests: check in_sync prints also dm status

It's more useful to see how the progress of status checking is moving.
---
 test/lib/check.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/lib/check.sh b/test/lib/check.sh
index 8637619f4..4deb78a74 100644
--- a/test/lib/check.sh
+++ b/test/lib/check.sh
@@ -216,7 +216,7 @@ in_sync() {
 		idx=6
 		type=${a[3]}
 		if [ "${a[$(( idx + 1 ))]}" != "idle" ]; then
-			echo "$lvm_name ($type$snap) is not in-sync"
+			echo "$lvm_name ($type$snap) is not in-sync    " "${a[@]}"
 			return 1
 		fi
 		;;
@@ -234,19 +234,19 @@ in_sync() {
 	c=${a[$idx]##*/}
 
 	if [ "$b" -eq 0 ] || [ "$b" != "$c" ]; then
-		echo "$lvm_name ($type$snap) is not in-sync"
+		echo "$lvm_name ($type$snap) is not in-sync    " "${a[@]}"
 		return 1
 	fi
 
 	if [[ ${a[$(( idx - 1 ))]} =~ a ]] ; then
 		[ "$ignore_a" = 0 ] && \
 			die "$lvm_name ($type$snap) in-sync, but 'a' characters in health status"
-		echo "$lvm_name ($type$snap) is not in-sync"
+		echo "$lvm_name ($type$snap) is not in-sync    " "${a[@]}"
 		[ "$ignore_a" = 1 ] && return 0
 		return 1
 	fi
 
-	echo "$lvm_name ($type$snap) is in-sync" "${a[@]}"
+	echo "$lvm_name ($type$snap) is in-sync    " "${a[@]}"
 }
 
 active() {



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-13 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13 22:16 master - tests: check in_sync prints also dm status Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.