[ovs-dev] [PATCH] debian: Re-run failed unit tests once.
Gurucharan Shetty
shettyg at nicira.com
Tue Jun 24 17:08:16 UTC 2014
There are always a few unit tests that have some race conditions
that cause them to occasionally fail. It is probably a good idea
to re-run the failed tests once while building deb packages.
Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Co-authored-by: Keith Amidon <kamidon at nicira.com>
Signed-off-by: Keith Amidon <kamidon at nicira.com>
---
debian/rules | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 799bf2e..5cf9f02 100755
--- a/debian/rules
+++ b/debian/rules
@@ -56,7 +56,8 @@ build-arch: build-arch-stamp
build-arch-stamp: configure-stamp
$(MAKE) -C _debian
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- if $(MAKE) -C _debian check TESTSUITEFLAGS='$(PARALLEL)'; then :; \
+ if $(MAKE) -C _debian check TESTSUITEFLAGS='$(PARALLEL)' || \
+ $(MAKE) -C _debian check TESTSUITEFLAGS='--recheck'; then :; \
else \
cat _debian/tests/testsuite.log; \
exit 1; \
--
1.7.9.5
More information about the dev
mailing list