From patchwork Tue Aug 20 06:37:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 19339 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f70.google.com (mail-qe0-f70.google.com [209.85.128.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CBAB225BDE for ; Tue, 20 Aug 2013 06:37:30 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id a11sf18811qen.5 for ; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:delivered-to:mime-version:to:from:subject :message-id:date:reply-to:sender:errors-to:precedence :x-original-sender:x-original-authentication-results:mailing-list :list-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=CTs4q9QestMR6mNp2mBkK3sK4x5A+xr6SqHqAaU0CKk=; b=fcEv1z3k/imsFcuNWzjhF78hJ/pBIg7mgj65cFg030LbedOaZckuQwYa5Ep3ZKMHQH 1Z7dpB0y9BFkKq55Fn1LPJW2Udz0qwQTnjPpayeB23c8hjMbkF9+vL2+KpjrKk4LCTyK UcKWJujaIphNuKKaHYl2FYeNgNfZp2oS8hkWMOPiEiRMs+pr5MbhdmsddRXntPj9y9B4 rfjJrgOPnghHR9mVaCgmahs3Okaf1zF1+9dpQ6lPNQt7KoZ7U2pjb/nxBXhgwqkTcS2t tq4O31CFxch8WN867sFcHSyAX65fL2ePBc81BhK/8mtDaaktu4lbzTxlcoT5jvJsCw2r dpDg== X-Received: by 10.236.45.102 with SMTP id o66mr3329464yhb.47.1376980650623; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.16.225 with SMTP id j1ls117711qed.54.gmail; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) X-Received: by 10.52.65.147 with SMTP id x19mr23320vds.103.1376980650395; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id y10si11667vem.75.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 23:37:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ij15so10263vcb.30 for ; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) X-Gm-Message-State: ALoCoQm1iScc8Pnel0MVR2Kz2grdJXcJxUf5v+nFsnBliJTxF+bzUgvMIGnltfs6p/3ezd+yz+zL X-Received: by 10.58.134.84 with SMTP id pi20mr25432veb.55.1376980650230; Mon, 19 Aug 2013 23:37:30 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp138742vcz; Mon, 19 Aug 2013 23:37:29 -0700 (PDT) X-Received: by 10.180.77.193 with SMTP id u1mr11923440wiw.34.1376980649364; Mon, 19 Aug 2013 23:37:29 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id ud9si2606wjc.157.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 19 Aug 2013 23:37:29 -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; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VBfZI-0002jk-MA for ; Tue, 20 Aug 2013 06:37:28 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 981BBE04C2 for ; Tue, 20 Aug 2013 06:37:28 +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: 653 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 653: Fix bug #1212589 - dependencies are not installed before executing the tests. Message-Id: <20130820063728.11932.98585.launchpad@ackee.canonical.com> Date: Tue, 20 Aug 2013 06:37:28 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16723"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 339fdc943a0e92ceb1bbd8bee8f7a80ca03ebb0b X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Senthil Kumaran S (stylesen) Related merge proposals: https://code.launchpad.net/~stylesen/lava-dispatcher/fix-bug-1212589/+merge/180961 proposed by: Senthil Kumaran S (stylesen) review: Approve - Fathi Boudra (fboudra) ------------------------------------------------------------ revno: 653 [merge] committer: Senthil Kumaran branch nick: trunk timestamp: Tue 2013-08-20 12:06:27 +0530 message: Fix bug #1212589 - dependencies are not installed before executing the tests. modified: lava_test_shell/lava-test-runner --- 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_test_shell/lava-test-runner' --- lava_test_shell/lava-test-runner 2013-04-11 19:50:48 +0000 +++ lava_test_shell/lava-test-runner 2013-08-20 06:11:19 +0000 @@ -51,15 +51,23 @@ echo "${PREFIX} looking for installation work in ${WORKFILE}" for line in $(cat ${WORKFILE}); do test=`basename $line` + echo "${PREFIX} Check if network interface is up ..." if [ -f ${line}/install.sh ] ; then - echo "${PREFIX} running ${test} installer ..." - /bin/sh ${line}/install.sh - if [ $? -ne 0 ] ; then - echo "${PREFIX} ${test} installer failed, exiting" - hwcontext - swcontext - exit 1 - fi + /bin/ping -W1 -c1 8.8.8.8 + if [ $? -ne 0 ] ; then + echo "${PREFIX} WARNING: Network interface is down. Dependencies will not be installed." + hwcontext + swcontext + exit 1 + fi + echo "${PREFIX} running ${test} installer ..." + /bin/sh ${line}/install.sh + if [ $? -ne 0 ] ; then + echo "${PREFIX} ${test} installer failed, exiting" + hwcontext + swcontext + exit 1 + fi fi done