From 0e9c8926a661a88289f5cd7cba7ec25d98c9deb7 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 26 Jun 2007 20:17:27 +0000 Subject: [PATCH] Added logging to find out why the buildbot doesn't give clean diffs when local runs do. - Legacy-Id: 665 --- ietf/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ietf/tests.py b/ietf/tests.py index 0da60ea8c..ea4cba93c 100644 --- a/ietf/tests.py +++ b/ietf/tests.py @@ -13,6 +13,7 @@ from django.conf import settings from django.db import connection from django.core import management import ietf.urls +from ietf.utils import log startup_database = settings.DATABASE_NAME # The startup database name, before changing to test_... @@ -326,7 +327,10 @@ class UrlTestCase(TestCase): diff = "\n".join(difflist) for chunk in module.diffchunks: if chunk: + if not re.search(chunk, diff): + log("No match: %s" % chunk[:32]) while re.search(chunk, diff): + log("Found chunk: %s" % chunk[:32]) diff = re.sub(chunk, "", diff) if len(diff.strip().splitlines()) == 2: # only the initial 2 lines of the diff remains --