Skip to content

Commit 0e9c892

Browse files
committed
Added logging to find out why the buildbot doesn't give clean diffs when local runs do.
- Legacy-Id: 665
1 parent 39af501 commit 0e9c892

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from django.db import connection
1414
from django.core import management
1515
import ietf.urls
16+
from ietf.utils import log
1617

1718
startup_database = settings.DATABASE_NAME # The startup database name, before changing to test_...
1819

@@ -326,7 +327,10 @@ def doUrlsTest(self, lst):
326327
diff = "\n".join(difflist)
327328
for chunk in module.diffchunks:
328329
if chunk:
330+
if not re.search(chunk, diff):
331+
log("No match: %s" % chunk[:32])
329332
while re.search(chunk, diff):
333+
log("Found chunk: %s" % chunk[:32])
330334
diff = re.sub(chunk, "", diff)
331335
if len(diff.strip().splitlines()) == 2:
332336
# only the initial 2 lines of the diff remains --

0 commit comments

Comments
 (0)