public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test harness.c test-utils.sh
@ 2010-03-31 22:18 mornfall
0 siblings, 0 replies; only message in thread
From: mornfall @ 2010-03-31 22:18 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall@sourceware.org 2010-03-31 22:18:17
Modified files:
test : harness.c test-utils.sh
Log message:
Re-run failing tests with log/verbose=4 (-vvvv) to help with debugging.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/harness.c.diff?cvsroot=lvm2&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/test-utils.sh.diff?cvsroot=lvm2&r1=1.26&r2=1.27
--- LVM2/test/harness.c 2009/07/13 21:26:41 1.4
+++ LVM2/test/harness.c 2010/03/31 22:18:17 1.5
@@ -126,6 +126,9 @@
int main(int argc, char **argv) {
int i;
status = alloca(sizeof(int)*argc);
+ char *config = getenv("LVM_TEST_CONFIG"),
+ *config_debug;
+ asprintf(&config_debug, "%s\n%s", config ? config : "", "log {\n verbose=4\n }");
if (socketpair(PF_UNIX, SOCK_STREAM, 0, fds)) {
perror("socketpair");
@@ -149,6 +152,12 @@
run(i, argv[i]);
if (die)
break;
+ if ( status[i] == FAILED ) {
+ setenv("LVM_TEST_CONFIG", config_debug, 1);
+ run(i, argv[i]);
+ setenv("LVM_TEST_CONFIG", config, 1);
+ status[i] = FAILED; /* just in case */
+ }
}
printf("\n## %d tests: %d OK, %d failed, %d skipped\n",
--- LVM2/test/test-utils.sh 2010/03/28 15:52:04 1.26
+++ LVM2/test/test-utils.sh 2010/03/31 22:18:17 1.27
@@ -316,6 +316,7 @@
locktype=
if test -n "$LVM_TEST_LOCKING"; then locktype="locking_type = $LVM_TEST_LOCKING"; fi
cat > $G_root_/etc/lvm.conf <<-EOF
+ $LVM_TEST_CONFIG
devices {
dir = "$G_dev_"
scan = "$G_dev_"
@@ -324,7 +325,6 @@
sysfs_scan = 0
}
log {
- verbose = $verboselevel
syslog = 0
indent = 1
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-31 22:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-31 22:18 LVM2/test harness.c test-utils.sh mornfall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).