From patchwork Mon Oct 1 22:19:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 11896 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 8D26523F5B for ; Mon, 1 Oct 2012 22:19:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 09A87A180A0 for ; Mon, 1 Oct 2012 22:19:14 +0000 (UTC) Received: by ieje10 with SMTP id e10so12889013iej.11 for ; Mon, 01 Oct 2012 15:19:14 -0700 (PDT) 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=sJajR8T+scstaArMvdkmFjGGVL2qKMegRuWrgFzcc88=; b=TQv4zYf84shNlBOMKZ12ZDtJxRXoj4uQFEUfGkKKs1SMGJkXZUA8gUookk3LKDM9LI io8eZfnyTY63rPCzG3mDb9ftJs5+g+k2fywOUDYWsGitmU1fYy1W9qhJs8wwPtK/LhnX QPiWK0DCwHNzgx+gHkGVv1bliyfMHggq9WvVepNvPgfOvOD6vd0qXeHhdaMXfoxSkkkV YD1DofzsyTH6H9lKru7yaT9xmu2M3ct2ddcv4BkHiZUbZkIq8FhEC3td7YWEvEbJbfuT N56xI5KQHVeEoFUSB2yiiBTN6/0TGmwwi1Ybxg/lD5mMFE2tE6SWxMTVDgg92Xj/yR3g MPkA== Received: by 10.42.84.69 with SMTP id k5mr12651239icl.5.1349129954347; Mon, 01 Oct 2012 15:19:14 -0700 (PDT) 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.184.232 with SMTP id ex8csp52172igc; Mon, 1 Oct 2012 15:19:12 -0700 (PDT) Received: by 10.180.80.134 with SMTP id r6mr17470531wix.1.1349129952068; Mon, 01 Oct 2012 15:19:12 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id z38si2095299wep.85.2012.10.01.15.19.11 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 15:19:12 -0700 (PDT) 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 1TIoKU-0003ow-T8 for ; Mon, 01 Oct 2012 22:19:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id CE8C6E098B for ; Mon, 1 Oct 2012 22:19:10 +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: 392 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 392: ensure we delete the host_dir Message-Id: <20121001221910.28336.12269.launchpad@ackee.canonical.com> Date: Mon, 01 Oct 2012 22:19:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16061"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 4736beb2e3ed02bcb046847791697b6886d45a3a X-Gm-Message-State: ALoCoQnE53cF2cdBwhF36qu1CtIl6GUUy2HcErJI2PSt0Is+Oq1xdcbttBaxtrTMLlRqEdr3WdZE Merge authors: Andy Doan (doanac) ------------------------------------------------------------ revno: 392 [merge] committer: Andy Doan branch nick: lava-dispatcher timestamp: Mon 2012-10-01 17:15:23 -0500 message: ensure we delete the host_dir modified: lava_dispatcher/context.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/context.py' --- lava_dispatcher/context.py 2012-09-26 01:44:57 +0000 +++ lava_dispatcher/context.py 2012-09-27 21:59:57 +0000 @@ -18,7 +18,9 @@ # along # with this program; if not, see . +import atexit import os +import shutil import tempfile from lava_dispatcher.config import get_device_config @@ -63,4 +65,5 @@ def host_result_dir(self): if self._host_result_dir is None: self._host_result_dir = tempfile.mkdtemp() + atexit.register(shutil.rmtree, self._host_result_dir) return self._host_result_dir