Blame SOURCES/lvm2-2_02_178-tests-longer-startup-timeout-for-daemons-with-valgri.patch

f0aa83
From b32a169b079a67629304c146aad65c2d79acfe01 Mon Sep 17 00:00:00 2001
f0aa83
From: Zdenek Kabelac <zkabelac@redhat.com>
f0aa83
Date: Mon, 15 Jan 2018 16:26:34 +0100
f0aa83
Subject: [PATCH 23/25] tests: longer startup timeout for daemons with valgrind
f0aa83
f0aa83
It's getting noticable somewhat slower...
f0aa83
f0aa83
(cherry picked from commit 5baf2de8986ceeb353c39ccf0503f9fefcb6eb92)
f0aa83
---
f0aa83
 test/lib/aux.sh | 16 ++++++++--------
f0aa83
 1 file changed, 8 insertions(+), 8 deletions(-)
f0aa83
f0aa83
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
f0aa83
index 6bc7bd4..f30dfdd 100644
f0aa83
--- a/test/lib/aux.sh
f0aa83
+++ b/test/lib/aux.sh
f0aa83
@@ -180,8 +180,8 @@ prepare_clvmd() {
f0aa83
 	LVM_LOG_FILE_EPOCH=CLVMD LVM_LOG_FILE_MAX_LINES=1000000 LVM_BINARY=$(which lvm) $run_valgrind clvmd -Isinglenode -d 1 -f &
f0aa83
 	echo $! > LOCAL_CLVMD
f0aa83
 
f0aa83
-	for i in {1..100} ; do
f0aa83
-		test "$i" -eq 100 && die "Startup of clvmd is too slow."
f0aa83
+	for i in {200..0} ; do
f0aa83
+		test "$i" -eq 0 && die "Startup of clvmd is too slow."
f0aa83
 		test -e "$CLVMD_PIDFILE" && test -e "${CLVMD_PIDFILE%/*}/lvm/clvmd.sock" && break
f0aa83
 		echo -n .
f0aa83
 		sleep .1
f0aa83
@@ -205,8 +205,8 @@ prepare_dmeventd() {
f0aa83
 	echo $! > LOCAL_DMEVENTD
f0aa83
 
f0aa83
 	# FIXME wait for pipe in /var/run instead
f0aa83
-	for i in {1..100} ; do
f0aa83
-		test "$i" -eq 100 && die "Startup of dmeventd is too slow."
f0aa83
+	for i in {200..0} ; do
f0aa83
+		test "$i" -eq 0 && die "Startup of dmeventd is too slow."
f0aa83
 		test -e "${DMEVENTD_PIDFILE}" && break
f0aa83
 		echo -n .
f0aa83
 		sleep .1
f0aa83
@@ -230,8 +230,8 @@ prepare_lvmetad() {
f0aa83
 	$run_valgrind lvmetad -f "$@" -s "$TESTDIR/lvmetad.socket" \
f0aa83
 		${LVM_TEST_LVMETAD_DEBUG_OPTS--l all} &
f0aa83
 	echo $! > LOCAL_LVMETAD
f0aa83
-	for i in {1..100} ; do
f0aa83
-		test "$i" -eq 100 && die "Startup of lvmetad is too slow."
f0aa83
+	for i in {200..0} ; do
f0aa83
+		test "$i" -eq 0 && die "Startup of lvmetad is too slow."
f0aa83
 		test -e "$TESTDIR/lvmetad.socket" && break
f0aa83
 		echo -n .
f0aa83
 		sleep .1;
f0aa83
@@ -280,8 +280,8 @@ prepare_lvmpolld() {
f0aa83
 	echo -n "## preparing lvmpolld..."
f0aa83
 	$run_valgrind lvmpolld -f "$@" -s "$TESTDIR/lvmpolld.socket" -B "$TESTDIR/lib/lvm" -l all &
f0aa83
 	echo $! > LOCAL_LVMPOLLD
f0aa83
-	for i in {1..100} ; do
f0aa83
-		test "$i" -eq 100 && die "Startup of lvmpolld is too slow."
f0aa83
+	for i in {200..0} ; do
f0aa83
+		test "$i" -eq 0 && die "Startup of lvmpolld is too slow."
f0aa83
 		test -e "$TESTDIR/lvmpolld.socket" && break
f0aa83
 		echo -n .;
f0aa83
 		sleep .1;
f0aa83
-- 
f0aa83
1.8.3.1
f0aa83