From patchwork Mon Feb 11 05:47:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumaran X-Patchwork-Id: 14726 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 88E2E23E2E for ; Mon, 11 Feb 2013 05:47:16 +0000 (UTC) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by fiordland.canonical.com (Postfix) with ESMTP id 21CAAA196ED for ; Mon, 11 Feb 2013 05:47:16 +0000 (UTC) Received: by mail-vc0-f178.google.com with SMTP id m8so3589410vcd.9 for ; Sun, 10 Feb 2013 21:47:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :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=4EyX1QsAUyMBf3URl9a0Ekls1HOgK1xZlStxTeTYSIs=; b=MIJMH5iAXfRMDXqs8M03CVmY1ucDaGMIRBKojLRtUyhpwzfXEJiIz7OEGFpZVUJVFX xKXUDvDOO7w5Wk1g5fFAOfe//gKF1Yxz6Eii13KU6YcvBZKVlDunbATjf9Mwo4ZM0p/q s+rY4EIpmxsGcPZypBTqtqZ/IAxyeMtKSAMcnCpQ3RMRkVUConJvwC/DAzsNDqd2YURG NTddTRB72VGhfo2m0WfRKvJihljYUoTQYoiMM/CjwnshjiW0vm2bUQnffr8QJbzE0nxO 8bTXIROPD4vPX3AM3MclPD/uvAvnmyZKMNa8qoHotx7hdtO+Ugmnkc6b4+6zLrQaiHV2 aV4A== X-Received: by 10.52.75.65 with SMTP id a1mr1165761vdw.79.1360561635610; Sun, 10 Feb 2013 21:47:15 -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.58.252.8 with SMTP id zo8csp79425vec; Sun, 10 Feb 2013 21:47:14 -0800 (PST) X-Received: by 10.194.122.98 with SMTP id lr2mr21685971wjb.7.1360561634366; Sun, 10 Feb 2013 21:47:14 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id c7si5957544wie.1.2013.02.10.21.47.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 21:47:14 -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 1U4mET-00077r-Gz for ; Mon, 11 Feb 2013 05:47:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6BC70E02D9 for ; Mon, 11 Feb 2013 05:47:13 +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: 557 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 557: Fix for bug #1119225 Use safe_load to load YAML files. Message-Id: <20130211054713.12411.16748.launchpad@ackee.canonical.com> Date: Mon, 11 Feb 2013 05:47:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16482"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 2ffbafa067c890c45bb21186725973e0433561c6 X-Gm-Message-State: ALoCoQk4spASMbZ75PKqnG2Q2zjzf+FamYCIchJNaZdC429vm7Cr1oNWSmFPTx+b+0ZfcPlS5Y5g ------------------------------------------------------------ revno: 557 committer: Senthil Kumaran branch nick: trunk timestamp: Mon 2013-02-11 08:01:22 +0530 message: Fix for bug #1119225 Use safe_load to load YAML files. modified: lava_dispatcher/actions/lava_test_shell.py lava_dispatcher/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 2013-01-28 08:51:59 +0000 +++ lava_dispatcher/actions/lava_test_shell.py 2013-02-11 02:31:22 +0000 @@ -244,7 +244,7 @@ testdef_file = download_image(url, self.context, tmpdir) with open(testdef_file, 'r') as f: logging.info('loading test definition') - testdef = yaml.load(f) + testdef = yaml.safe_load(f) idx = len(self.testdefs) @@ -270,7 +270,7 @@ test = testdef_repo.get('testdef', 'lavatest.yaml') with open(os.path.join(repo, test), 'r') as f: logging.info('loading test definition ...') - testdef = yaml.load(f) + testdef = yaml.safe_load(f) idx = len(self.testdefs) self._append_testdef( === modified file 'lava_dispatcher/lava_test_shell.py' --- lava_dispatcher/lava_test_shell.py 2013-01-30 05:33:55 +0000 +++ lava_dispatcher/lava_test_shell.py 2013-02-11 02:31:22 +0000 @@ -295,8 +295,8 @@ # XXX testdef_metadata = _read_content(os.path.join(test_run_dir, # XXX 'testdef_metadata')) - testdef = yaml.load(testdef) - # XXX testdef_metadata = yaml.load(testdef_metadata) + testdef = yaml.safe_load(testdef) + # XXX testdef_metadata = yaml.safe_load(testdef_metadata) if uuid in testdefs_by_uuid: sw_sources = testdefs_by_uuid[uuid]._sw_sources else: