From patchwork Mon Dec 3 21:20:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 13351 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 67C8A23E1F for ; Mon, 3 Dec 2012 21:20:21 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id BF30BA18238 for ; Mon, 3 Dec 2012 21:20:20 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so2415892iag.11 for ; Mon, 03 Dec 2012 13:20:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=gAI+ODtI/nhX0750o12Px+P8Rxoh1h4vII/FatM4lM0=; b=GRVdxiAoN9wvotyzxmYa8W5gqBSvgsLx8F1IwwK08HulA9NWFJpfmQJbeae5VuBq+3 MJY01+Oskj/TUqN+P8su8FcAnjAvXjL0JSeQyJREHCSUdVZ0HFpv0wA77WOdzDN/6Ylu iuhfN3dtPO9CpUMOqpekaTMU6yQV1gDr8biHLBcl+/POGUO23oykdSKI7kDrFh09iIex RukP5CNJzXLH2FehuVZnK5ghDvOpvOpaWzQSjrqM20xgOGz1lV7atGhjGkkHl2J2szMu 9VY2H1eeS6JBNP3ZJIEqUQRV8kOeYw4tFU1aFPQbFpBx+vx58ESHuTdF8V9XF+6NIoA5 8D5A== Received: by 10.50.185.166 with SMTP id fd6mr161212igc.62.1354569620128; Mon, 03 Dec 2012 13:20:20 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp220892igt; Mon, 3 Dec 2012 13:20:19 -0800 (PST) Received: by 10.216.29.138 with SMTP id i10mr4093492wea.36.1354569618585; Mon, 03 Dec 2012 13:20:18 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id x30si9019626wen.156.2012.12.03.13.20.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2012 13:20:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TfdR3-0000kz-Jc for ; Mon, 03 Dec 2012 21:20:17 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 87AD6E04F7 for ; Mon, 3 Dec 2012 21:20:17 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 481 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 481: make context available to signal handlers Message-Id: <20121203212017.11651.91057.launchpad@ackee.canonical.com> Date: Mon, 03 Dec 2012 21:20:17 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16335"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 1e08b4631183ffe9beca9fea7d68943680fdea4a X-Gm-Message-State: ALoCoQnWARU6evAixINJIPQrMoADGQB38aMpt1anb1HKhOTNMruYTRpfROifBLEB4oyoMjZryAf/ Merge authors: Andy Doan (doanac) Related merge proposals: https://code.launchpad.net/~doanac/lava-dispatcher/signal-handlers-context/+merge/137269 proposed by: Andy Doan (doanac) ------------------------------------------------------------ revno: 481 [merge] committer: Andy Doan branch nick: lava-dispatcher timestamp: Mon 2012-12-03 15:19:30 -0600 message: make context available to signal handlers modified: lava_dispatcher/actions/lava_test_shell.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/actions/lava_test_shell.py' --- lava_dispatcher/actions/lava_test_shell.py 2012-12-03 19:38:41 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2012-12-03 21:19:30 +0000 @@ -197,6 +197,7 @@ Target.android_deployment_data['lava_test_configure_startup'] = \ _configure_android_startup + def _get_testdef_git_repo(testdef_repo, tmpdir, revision): cwd = os.getcwd() gitdir = os.path.join(tmpdir, 'gittestrepo') @@ -255,7 +256,7 @@ idx = len(self.testdefs) - self._append_testdef(URLTestDefinition(idx, testdef)) + self._append_testdef(URLTestDefinition(self.context, idx, testdef)) def load_from_repo(self, testdef_repo): tmpdir = utils.mkdtemp(self.tmpbase) @@ -277,7 +278,8 @@ testdef = yaml.load(f) idx = len(self.testdefs) - self._append_testdef(RepoTestDefinition(idx, testdef, repo, info)) + self._append_testdef( + RepoTestDefinition(self.context, idx, testdef, repo, info)) def _bzr_info(url, bzrdir, name): @@ -316,7 +318,8 @@ A test definition that was loaded from a URL. """ - def __init__(self, idx, testdef): + def __init__(self, context, idx, testdef): + self.context = context self.testdef = testdef self.idx = idx self.test_run_id = '%s_%s' % (idx, self.testdef['metadata']['name']) @@ -435,8 +438,8 @@ the device. """ - def __init__(self, idx, testdef, repo, info): - URLTestDefinition.__init__(self, idx, testdef) + def __init__(self, context, idx, testdef, repo, info): + URLTestDefinition.__init__(self, context, idx, testdef) self.repo = repo self._sw_sources.append(info)