From patchwork Tue Oct 23 05:28:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 12418 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 7FE3823FB6 for ; Tue, 23 Oct 2012 05:28:19 +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 F06EDA18A46 for ; Tue, 23 Oct 2012 05:28:18 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so4609907iej.11 for ; Mon, 22 Oct 2012 22:28:18 -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=DQ44X8w5M2CztyuGT2rs8dVVzLvkqxhSoXh5Kx8NNXY=; b=JiCQd9RGoQ0TY8W4i6j1MiHa+r1bD/XfvvVPj/5ajrlj63eaSi+N+uLIL+bRGpFc1A Px95vk/RDhuosdpQQo59wyFhVCnB8cQxtLQlGJQeewkuzuW/fCCo3rbUQw/7C7p8E94g yuolDkx5S24qL6/jfUW1Ri4b6C7xci9BKgeT/fOZwxvPzkAZ6VWI3zooLCWmaorP8BVM eRIfO/5Pnj1NfQthhlI8gGLkonkOfA0MA302wKkUpD583q+IABxku+CQEPb9kPzusWYW FmkzH9CPqOkZrFQPOIj72+n5lDs8DoPro73yu6b4cK75v7WmpVYrb5gLwTwBnyS+ToTi mtwQ== Received: by 10.50.161.169 with SMTP id xt9mr18436179igb.62.1350970097400; Mon, 22 Oct 2012 22:28:17 -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.67.148 with SMTP id n20csp362494igt; Mon, 22 Oct 2012 22:28:16 -0700 (PDT) Received: by 10.216.70.13 with SMTP id o13mr7249757wed.184.1350970096286; Mon, 22 Oct 2012 22:28:16 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id v28si11554922weo.112.2012.10.22.22.28.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Oct 2012 22:28:16 -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 1TQX2F-00082f-EM for ; Tue, 23 Oct 2012 05:28:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 63F5DE04E1 for ; Tue, 23 Oct 2012 05:28:15 +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: 415 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 415: release-0.19.2 Message-Id: <20121023052815.18357.2658.launchpad@ackee.canonical.com> Date: Tue, 23 Oct 2012 05:28:15 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16179"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 8a71ac3af9c6aa30bab660284a2035f0f962208e X-Gm-Message-State: ALoCoQlDnGlLtMAPEP3g00we+jb236KnWi4v2JF6xgl3cCS+sLRHckNZhjuwuMnzC0naxzAU25wQ ------------------------------------------------------------ revno: 415 committer: Andy Doan branch nick: lava-dispatcher timestamp: Mon 2012-10-22 23:46:20 -0500 message: release-0.19.2 fix openembedded file permission issue modified: lava_dispatcher/__init__.py 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/__init__.py' --- lava_dispatcher/__init__.py 2012-10-23 03:21:33 +0000 +++ lava_dispatcher/__init__.py 2012-10-23 04:46:20 +0000 @@ -18,4 +18,4 @@ # along # with this program; if not, see . -__version__ = (0, 19, 1, "final", 0) +__version__ = (0, 19, 2, "final", 0) === modified file 'lava_dispatcher/actions/lava_test_shell.py' --- lava_dispatcher/actions/lava_test_shell.py 2012-10-18 19:46:30 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2012-10-23 04:46:20 +0000 @@ -61,6 +61,10 @@ Target.oe_deployment_data['lava_test_dir'] = '/lava' Target.oe_deployment_data['lava_test_results_part_attr'] = 'root_part' +# 755 file permissions +XMOD = stat.S_IRWXU | stat.S_IXGRP | stat.S_IRGRP | stat.S_IXOTH | stat.S_IROTH + + def _configure_ubuntu_startup(etcdir): logging.info('adding ubuntu upstart job') shutil.copy(LAVA_TEST_UPSTART, '%s/init/' % etcdir) @@ -71,9 +75,11 @@ def _configure_oe_startup(etcdir): logging.info('adding init.d script') - shutil.copy(LAVA_TEST_INITD, '%s/init.d/lava-test-runner' % etcdir) - shutil.copy(LAVA_TEST_INITD, '%s/rc5.d/S50lava-test-runner' % etcdir) - shutil.copy(LAVA_TEST_INITD, '%s/rc6.d/K50lava-test-runner' % etcdir) + initd_file = '%s/init.d/lava-test-runner' % etcdir + shutil.copy(LAVA_TEST_INITD, initd_file) + os.chmod(initd_file, XMOD) + shutil.copy(initd_file, '%s/rc5.d/S50lava-test-runner' % etcdir) + shutil.copy(initd_file, '%s/rc6.d/K50lava-test-runner' % etcdir) Target.oe_deployment_data['lava_test_configure_startup'] = \ _configure_oe_startup @@ -128,17 +134,16 @@ return json.load(f) def _copy_runner(self, mntdir, target): - xmod = (stat.S_IRWXU | stat.S_IXGRP | stat.S_IRGRP | - stat.S_IXOTH | stat.S_IROTH) runner = target.deployment_data['lava_test_runner'] shell = target.deployment_data['lava_test_shell'] shutil.copy(runner, '%s/bin/lava-test-runner' % mntdir) + os.chmod('%s/bin/lava-test-runner' % mntdir, XMOD) with open(shell, 'r') as fin: with open('%s/bin/lava-test-shell' % mntdir, 'w') as fout: shcmd = target.deployment_data['lava_test_sh_cmd'] fout.write("#!%s\n\n" % shcmd) fout.write(fin.read()) - os.fchmod(fout.fileno(), xmod) + os.fchmod(fout.fileno(), XMOD) def _bzr_info(self, url, bzrdir): cwd = os.getcwd()