Skip to contentSkip to conversation

master - tests: increase max lines for clvmd

PATCH Zdenek Kabelac 1 participant 1 message Jul 11, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8756297a8d39d33766f1f19060749b9570d76b1a
Commit:        8756297a8d39d33766f1f19060749b9570d76b1a
Parent:        34c55d98eefd88f85476c0f62f0649c706bde6f0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jul 11 14:45:25 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 11 14:45:25 2016 +0200

tests: increase max lines for clvmd

Clvmd is a bit more verbose long time running process so let it live with more logged lines.

Also fix typo in warn message from last commit.

---
 lib/log/log.c   |    2 +-
 test/lib/aux.sh |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
lib/log/log.c +1 -1
index 434b8d0..6d5fc59 100644
@@ -116,7 +116,7 @@ void init_log_file(const char *log_file, int append)
 
 		if ((env = getenv("LVM_LOG_FILE_MAX_LINES"))) {
 			if (sscanf(env, FMTu64, &_log_file_max_lines) != 1) {
-				log_warn("WARNING: Ingnoring incorrect LVM_LOG_MAX_LINES envvar \"%s\".", env);
+				log_warn("WARNING: Ignoring invalid LVM_LOG_MAX_LINES envvar \"%s\".", env);
 				_log_file_max_lines = 0;
 			}
 			_log_file_lines = 0;
test/lib/aux.sh +1 -1
index 7724723..90f2ab1 100644
@@ -169,7 +169,7 @@ prepare_clvmd() {
 	rm -f "$CLVMD_PIDFILE"
 	echo "<======== Starting CLVMD ========>"
 	# lvs is executed from clvmd - use our version
-	LVM_LOG_FILE_EPOCH=CLVMD LVM_BINARY=$(which lvm) $run_valgrind clvmd -Isinglenode -d 1 -f &
+	LVM_LOG_FILE_EPOCH=CLVMD LVM_LOG_FILE_MAX_LINES=1000000 LVM_BINARY=$(which lvm) $run_valgrind clvmd -Isinglenode -d 1 -f &
 	echo $! > LOCAL_CLVMD
 
 	for i in {1..100} ; do