~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/jobs/jenkins.py

  • Committer: Aaron Bentley
  • Date: 2013-02-12 18:57:02 UTC
  • mfrom: (149 charmworld)
  • mto: This revision was merged to the branch mainline in revision 150.
  • Revision ID: aaron@canonical.com-20130212185702-9gnf40ao17a7uw7v
Merged trunk into mongo-urls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
    return artifacts
137
137
 
138
138
 
139
 
def run(db, fs, in_queue, out_queue):
 
139
def test_charms(db, fs, in_queue, out_queue):
 
140
    log = logging.getLogger("charm.jenkins")
140
141
    while 1:
141
142
        item = in_queue.next()
142
143
        if not item:
162
163
    db = pymongo.Connection(MONGO_URL)['juju']
163
164
    fs = gridfs.GridFS(db)
164
165
    in_queue, out_queue = get_queues(JENKINS_IN_QUEUE, JENKINS_OUT_QUEUE)
165
 
    run(db, fs, in_queue, out_queue)
 
166
    test_charms(db, fs, in_queue, out_queue)