Merge lp:~rockstar/launchpad/fix-kill-test-services into lp:launchpad

Proposed by Paul Hummer
Status: Merged
Approved by: Aaron Bentley
Approved revision: no longer in the source branch.
Merged at revision: 11765
Proposed branch: lp:~rockstar/launchpad/fix-kill-test-services
Merge into: lp:launchpad
Diff against target: 21 lines (+1/-3)
1 file modified
buildout-templates/bin/kill-test-services.in (+1/-3)
To merge this branch: bzr merge lp:~rockstar/launchpad/fix-kill-test-services
Reviewer Review Type Date Requested Status
Aaron Bentley (community) Approve
Review via email: mp+38870@code.launchpad.net

Commit message

Fix bin/kill-test-services to work properly again

Description of the change

The Launchpad librarian can get wedged in some pretty fantastic ways. Today, I learned about a bunch of them. My librarian had left files around on my system, and those files prevented the librarian from starting up again. Usually, the fix for this is to call bin/kill-test-services. That didn't work, so I dug into what makes the librarian tick. As I looked for these bad files and deleted them, it dawned on me that it'd be much better to just fix bin/kill-test-services, fixing a bug AND fixing my issue at the same time.

It looks like we never should have imported LibrarianTestSetup from harness, and now that harness.py has been deleted, it broke the script. I changed the import path. Also, TacLibrarianSetup doesn't seem to exist anymore. Go figure.

To post a comment you must log in.
Revision history for this message
Aaron Bentley (abentley) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'buildout-templates/bin/kill-test-services.in'
2--- buildout-templates/bin/kill-test-services.in 2010-04-20 19:10:35 +0000
3+++ buildout-templates/bin/kill-test-services.in 2010-10-19 18:08:46 +0000
4@@ -19,8 +19,7 @@
5 import sys
6
7 from canonical.testing.layers import MemcachedLayer
8-from canonical.librarian.ftests.harness import (
9- LibrarianTestSetup, TacLibrarianTestSetup)
10+from canonical.librarian.testing.server import LibrarianTestSetup
11 from lp.services.osutils import kill_by_pidfile
12
13
14@@ -32,7 +31,6 @@
15 kill_by_pidfile(MemcachedLayer.getPidFile())
16 print "done."
17 print "Killing Librarian....",
18- TacLibrarianTestSetup().tearDown()
19 LibrarianTestSetup().tearDownRoot()
20 print "done."
21 return 0