From patchwork Mon May 28 16:40:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Baldwin X-Patchwork-Id: 161630 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D9542B6FA5 for ; Tue, 29 May 2012 02:40:28 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1338828029; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:To:Subject:Message-Id:Date: From:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=YV6N2Rm YR2s7if1XzM0FJYUq3qI=; b=SY1KjmeMqDnlouROPjUnvNdcB9G3cw7jQmuVavY 6b4pdOPqU1zKIQJ03FZa/HQGaQihxdiZ21RosH4OQgEtW3Mahl4Anrt7qb+9TK0W Dry/o8g29hjaohXfGk+bkp7aHMaAfJgp/E8YGrQeikE3rEbaeF9+z8cEj0dXg/7s 26h0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Received:Received:Received:To:Subject:Message-Id:Date:From:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=uY2aJPICjoTrgU2/ODxA806aUHmMyZqy/OE/l9iwyYWENP5rPunFaIDRGgFKqP H6iAWS/SponGSmGGhEaFDmYwrssUiiANwoacTkLDQ3shxyqcoj+W8scc5m7g7bUd cK1AK7VjvbO014J//+dkal0/RTx66zXlCq7JRUYTHag68=; Received: (qmail 25203 invoked by alias); 28 May 2012 16:40:20 -0000 Received: (qmail 25056 invoked by uid 22791); 28 May 2012 16:40:18 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-gh0-f201.google.com (HELO mail-gh0-f201.google.com) (209.85.160.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 May 2012 16:40:05 +0000 Received: by ghbg15 with SMTP id g15so218045ghb.2 for ; Mon, 28 May 2012 09:40:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=to:subject:message-id:date:from:x-gm-message-state; bh=6I+yKyEdkgHE0m7ENDq9J9DV4qtRVnMcetirEkJmqWE=; b=Sf+dM5WpMj9aFKt9mCMndQt7ust4Kd/YCb0bJ1Oax6xmTXnwIb66Rpe3gL7OrdXEni YBXsF8InUTviSInzohJZuXTyYohomE3XRPHwP0p6kYcrkr13gASIoSn0QztiDneOcadH FNq0vn6Z5TBzPQsMxY/mD5sk7ot/yZTBdfZiKTE3hkGnIB1G/ZNjfzYxyL6DB6vLF6aH CHrqtD5vUjzdJbEWmZZwR7aTK6ajVi1ljWPn5T8y8xfRlMqezogCWzt04UrSUFFLBpcn uYWR2hplM5Gj37BdL1DV3Zd0EZeq6wh9vS8ScRd1Up1ht3Zb49ZB6LfxCEZQuIdQEwEV cBrw== Received: by 10.236.157.1 with SMTP id n1mr2049616yhk.1.1338223204985; Mon, 28 May 2012 09:40:04 -0700 (PDT) Received: by 10.236.157.1 with SMTP id n1mr2049593yhk.1.1338223204746; Mon, 28 May 2012 09:40:04 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id k35si9909651yhb.3.2012.05.28.09.40.04 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 28 May 2012 09:40:04 -0700 (PDT) Received: from hpbd-ubiq34.eem.corp.google.com (hpbd-ubiq34.eem.corp.google.com [172.25.139.34]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 94734100056; Mon, 28 May 2012 09:40:04 -0700 (PDT) Received: by hpbd-ubiq34.eem.corp.google.com (Postfix, from userid 9603) id 0E8E02BECE; Mon, 28 May 2012 18:40:03 +0200 (CEST) To: reply@codereview.appspotmail.com,gcc-patches@gcc.gnu.org Subject: Port r184840 from gcc-4_6. (issue6259049) Message-Id: <20120528164004.0E8E02BECE@hpbd-ubiq34.eem.corp.google.com> Date: Mon, 28 May 2012 18:40:03 +0200 (CEST) From: simonb@google.com (Simon Baldwin) X-Gm-Message-State: ALoCoQmkWPXb5aBxAxuC0Z/bJOR5fKI5WtNeMXRp7aQtzqUmCHcNGkvFBSnL95aJoZhpoZxnlQWG7p2txmoMqciLESBljXStBWVyboPRt8pnvuZEoNmA9yeb9QCRfazHSG5r5W5mS86++y3TPwneKsyvt3p9ad0u2g== X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Port r184840 from gcc-4_6. Forward-port r184840, contrib/testsuite-management/validate_failures.py fix for cross-compilers, from gcc-4_6 to gcc-4_7. Okay for google/integration and google/gcc-4_7-integration branches? 2012-05-28 Simon Baldwin Port r184840 from gcc-4_6. 2012-03-02 Doug Kwan Backport r184357 from trunk 2012-02-17 Doug Kwan * contrib/testsuite-management/validate_failures.py (GetMakefileValue): Check for cross compilers. --- This patch is available for review at http://codereview.appspot.com/6259049 Index: contrib/testsuite-management/validate_failures.py =================================================================== --- contrib/testsuite-management/validate_failures.py (revision 187932) +++ contrib/testsuite-management/validate_failures.py (working copy) @@ -146,7 +146,8 @@ def GetMakefileValue(makefile_name, valu def ValidBuildDirectory(builddir, target): if (not os.path.exists(builddir) or not os.path.exists('%s/Makefile' % builddir) or - not os.path.exists('%s/build-%s' % (builddir, target))): + (not os.path.exists('%s/build-%s' % (builddir, target)) and + not os.path.exists('%s/%s' % (builddir, target)))): return False return True