Merge lp:~gary/launchpad/bug994158 into lp:launchpad

Proposed by Gary Poster
Status: Merged
Approved by: Brad Crittenden
Approved revision: no longer in the source branch.
Merged at revision: 15200
Proposed branch: lp:~gary/launchpad/bug994158
Merge into: lp:launchpad
Diff against target: 11 lines (+4/-0)
1 file modified
lib/lp/soyuz/doc/package-cache-script.txt (+4/-0)
To merge this branch: bzr merge lp:~gary/launchpad/bug994158
Reviewer Review Type Date Requested Status
Brad Crittenden (community) code Approve
Review via email: mp+104618@code.launchpad.net

Commit message

Mark the db as dirty after a cronscript test so our automatic processes clean the db up for the next test.

Description of the change

This simple change mirrors the changes done for related bug 849056 and bug 987904. cronscripts do not mark the db as dirty in the current process, so we need to explicitly do so so that the db is reset.

To post a comment you must log in.
Revision history for this message
Brad Crittenden (bac) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/soyuz/doc/package-cache-script.txt'
--- lib/lp/soyuz/doc/package-cache-script.txt 2011-12-29 05:29:36 +0000
+++ lib/lp/soyuz/doc/package-cache-script.txt 2012-05-03 20:30:26 +0000
@@ -72,3 +72,7 @@
72 >>> warty.searchPackages('foobar').count()72 >>> warty.searchPackages('foobar').count()
73 073 0
7474
75Explicitly mark the database as dirty so that it is cleaned (see bug 994158).
76
77 >>> from lp.testing.layers import DatabaseLayer
78 >>> DatabaseLayer.force_dirty_database()