summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-07-15 10:50:33 -0700
committerBen Pfaff <blp@nicira.com>2010-07-21 15:34:17 -0700
commit7454ec7a7494039ad339af5c0825fcc856bc6ffb (patch)
treef8bd77b4b490208dd3d80982639b6e14d13c364c
parent17ee3c1ffddb06a93c20617eda5d60b474c22dbe (diff)
downloadopenvswitch-7454ec7a7494039ad339af5c0825fcc856bc6ffb.tar.gz
tests: Disable profiling for "wait-until must wait" test.
This test tends to break when run with lcov profiling since the lcov wrapper script can't synchronize access to profiling data across all the ovs-vsctl instances running in parallel.
-rw-r--r--tests/automake.mk2
-rwxr-xr-xtests/lcov-wrapper.in5
-rw-r--r--tests/ovs-vsctl.at6
3 files changed, 12 insertions, 1 deletions
diff --git a/tests/automake.mk b/tests/automake.mk
index 51205d9b8..48aa5aa18 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -92,7 +92,7 @@ LCOV = lcov -b $(abs_top_builddir) -d $(abs_top_builddir) -q
check-lcov: all tests/atconfig tests/atlocal $(TESTSUITE) $(lcov_wrappers)
rm -fr tests/coverage.html tests/coverage.info
$(LCOV) -c -i -o - > tests/coverage.info
- $(SHELL) '$(TESTSUITE)' -C tests CHECK_LCOV=true AUTOTEST_PATH='tests/lcov:$(AUTOTEST_PATH)' $(TESTSUITEFLAGS); \
+ $(SHELL) '$(TESTSUITE)' -C tests CHECK_LCOV=true DISABLE_LCOV=false AUTOTEST_PATH='tests/lcov:$(AUTOTEST_PATH)' $(TESTSUITEFLAGS); \
rc=$$?; \
echo "Producing coverage.html..."; \
cd tests && genhtml -q -o coverage.html coverage.info; \
diff --git a/tests/lcov-wrapper.in b/tests/lcov-wrapper.in
index 1981cdaeb..0c6a35915 100755
--- a/tests/lcov-wrapper.in
+++ b/tests/lcov-wrapper.in
@@ -31,6 +31,11 @@ fi
PATH=$new_path
export PATH
+if test "$DISABLE_LCOV" = true; then
+ exec $wrap_program "$@"
+ exit 1
+fi
+
# XXX Probably want some kind of synchronization here to deal with
# programs running in parallel.
LCOV="lcov -b $abs_top_builddir -d $abs_top_builddir -q"
diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at
index fa882b0c7..061a4f480 100644
--- a/tests/ovs-vsctl.at
+++ b/tests/ovs-vsctl.at
@@ -721,6 +721,12 @@ AT_CLEANUP
AT_SETUP([database commands -- wait-until must wait])
AT_KEYWORDS([ovs-vsctl])
+
+# Disable lcov for this test. All the programs running in parallel
+# race badly on access to profiling data.
+DISABLE_LCOV=true
+export DISABLE_LCOV
+
OVS_VSCTL_SETUP
# Start ovs-vsctls in background.