Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4015FE009C8; Sun, 26 Apr 2015 23:31:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3DEA0E009C8; Sun, 26 Apr 2015 23:31:43 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.9) with ESMTP id t3R6Vfok011038 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 26 Apr 2015 23:31:42 -0700 (PDT) Received: from localhost (128.224.163.137) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 26 Apr 2015 23:31:41 -0700 From: Yi Zhao To: Date: Mon, 27 Apr 2015 14:31:39 +0800 Message-ID: <1430116299-8880-1-git-send-email-yi.zhao@windriver.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [128.224.163.137] Subject: [yocto-autobuilder][PATCH] SendErrorReport.py: fix two issues X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2015 06:31:45 -0000 Content-Type: text/plain Remove undefined $x in command. Add a missing blank for the -l flag. Signed-off-by: Yi Zhao --- .../autobuilder/buildsteps/SendErrorReport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/SendErrorReport.py b/lib/python2.7/site-packages/autobuilder/buildsteps/SendErrorReport.py index 34bb02a..2d5f32b 100644 --- a/lib/python2.7/site-packages/autobuilder/buildsteps/SendErrorReport.py +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/SendErrorReport.py @@ -42,7 +42,7 @@ class SendErrorReport(ShellCommand): else: if str(os.environ.get('ERROR_REPORT_COLLECT')) == "True": self.command = "if [ ! -f ~/.oe-send-error ]; then host=`hostname`; echo \"yocto-autobuilder-autogenerated-$host\" > ~/.oe-send-error; fi ; " - self.command += ". ./oe-init-build-env; if [ -d " + self.errordir +"/$x" + " ]; then for x in `ls " + self.errordir + " | grep error_report_`;" + self.command += ". ./oe-init-build-env; if [ -d " + self.errordir + " ]; then for x in `ls " + self.errordir + " | grep error_report_`;" if int(self.layerversion_core) == 4: if os.environ.get('ERROR_REPORT_SERVER') is not None: self.er_server = str(os.environ.get('ERROR_REPORT_SERVER')) @@ -51,7 +51,7 @@ class SendErrorReport(ShellCommand): self.command += "do send-error-report " + self.errordir +"/$x"+ self.er_server + "; done; fi" elif int(self.layerversion_core) == 5: master = self.build.builder.botmaster.parent - self.er_link = " -l" + master.status.getURLForBuild(self.buildername, self.buildnumber) + self.er_link = " -l " + master.status.getURLForBuild(self.buildername, self.buildnumber) if os.environ.get('ERROR_REPORT_SERVER') is not None: self.er_server = " -s " + str(os.environ.get('ERROR_REPORT_SERVER')) else: -- 1.7.9.5