From patchwork Tue Dec 11 00:23:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 13461 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 BE0324C1768 for ; Tue, 11 Dec 2012 00:23:17 +0000 (UTC) Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by fiordland.canonical.com (Postfix) with ESMTP id 69F8FA18F5E for ; Tue, 11 Dec 2012 00:23:17 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id qd14so10003391ieb.20 for ; Mon, 10 Dec 2012 16:23:16 -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=dzqBrOXkJ7e+ClTCuiKBB2dsIaTejkUXCfAMvI6+z6E=; b=p0fQDRhf8Ly0cGVT0grukbuDr7X2s2k3yg7tw/pu+S4pbRKuSru8CR1vcAc9FBDiFc yK/fk8mX8zIntFbmZTeO4bHgtHHbh03zkqn89y1aoaBmiZx4wl0zptFuLm0nLTX+UwUn 2ROnRSMXjRsC0FA8y1nzwyTLa2Guyr6ld2sFOIFtmhJNPwIfyRka06g7c7J4CzX9Hxd9 fb6CgNd37ZzxQni3Gs+34ydwCnD2qG9/V/vXK9Pa/VAFXMI1MZf3zIySvpWJLexL2Oxw QuPZgk+vXa3tdzx4O+/ajgIWcG5QvNxlysbPrHoLBYCEbrckJGIzYRL7Al8oL3cvxgN2 hJQw== Received: by 10.50.36.164 with SMTP id r4mr8282483igj.57.1355185396889; Mon, 10 Dec 2012 16:23:16 -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 n20csp99959igt; Mon, 10 Dec 2012 16:23:16 -0800 (PST) Received: by 10.180.81.39 with SMTP id w7mr13859957wix.15.1355185395438; Mon, 10 Dec 2012 16:23:15 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id p30si15607244wen.95.2012.12.10.16.23.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 16:23:15 -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 1TiDcw-0005iI-NO for ; Tue, 11 Dec 2012 00:23:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id A8C08E0015 for ; Tue, 11 Dec 2012 00:23:14 +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: 491 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 491: fix a bug in the timeout calculation for lava-test-shell: Message-Id: <20121211002314.15040.65625.launchpad@ackee.canonical.com> Date: Tue, 11 Dec 2012 00:23:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16341"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: c09dd500664c883f32d59062f7c32be299eac808 X-Gm-Message-State: ALoCoQlX282SLDT+PMNmEeoWfmB0k8DX2W2SJ4cZpPixKQRPJsGItbpDHOvST0pYUyKlJyWELxnN ------------------------------------------------------------ revno: 491 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Tue 2012-12-11 13:22:28 +1300 message: fix a bug in the timeout calculation for lava-test-shell: the previous code reduced the timeout by the time since lava-test-shell started each time a signal was processed (rather than just reducing the timeout by the amount of time since the previous signal) 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-06 22:38:56 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2012-12-11 00:22:28 +0000 @@ -486,9 +486,10 @@ with target.runner() as runner: start = time.time() + initial_timeout = timeout while self._keep_running(runner, timeout, signal_director): elapsed = time.time() - start - timeout = int(timeout - elapsed) + timeout = int(initial_timeout - elapsed) self._bundle_results(target, signal_director, testdefs_by_uuid)