From patchwork Sat May 24 17:14:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 352142 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7F9D1140082 for ; Sun, 25 May 2014 03:15:07 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= default; b=bcsnona9rb8RAauP275sVuuRxLPtUWX30i9dvgXb8wGAuHdRQ13qT DgFYOcsrrGZLig2n9IUXwxp6kSkwjjuuf7loVfvMMPml9/TDOCfhb6iZUEZp0uW/ F/D+hMjeJs9BcXaELiTQQLSMu1MCsLvg2y8dmETbecJ2JPJCSA0ivY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=default; bh=2F+QVV0Tlfabwc6yKJLGZv7Zhno=; b=E+yQMJLCQRVdWwNomNfDFk6BjzT3 OGnqOWjrfZDyvkyo/Yh2VdpxpFtUpxn05uDBFhKv6VnK7T0ST2bhsCPcO9CQIa2k 0XuWU0CyT5+y2PxUErL19yavnyYjIP9q+xG+spgVYAYAOC/bKqN9RBPjTcK5NyHy sDF/Md+XxwMfUhQ= Received: (qmail 28590 invoked by alias); 24 May 2014 17:15:00 -0000 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 Received: (qmail 28580 invoked by uid 89); 24 May 2014 17:14:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: qmta10.emeryville.ca.mail.comcast.net Received: from qmta10.emeryville.ca.mail.comcast.net (HELO qmta10.emeryville.ca.mail.comcast.net) (76.96.30.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 24 May 2014 17:14:58 +0000 Received: from omta09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by qmta10.emeryville.ca.mail.comcast.net with comcast id 5t2Q1o0050S2fkCAAtEwsf; Sat, 24 May 2014 17:14:56 +0000 Received: from [IPv6:2001:558:6045:a4:4cac:8ede:cb92:dab8] ([IPv6:2001:558:6045:a4:4cac:8ede:cb92:dab8]) by omta09.emeryville.ca.mail.comcast.net with comcast id 5tEv1o00G0R3fLE8VtEw1z; Sat, 24 May 2014 17:14:56 +0000 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: RFA: speeding up dg-extract-results.sh From: Mike Stump In-Reply-To: <53807FD2.6060805@t-online.de> Date: Sat, 24 May 2014 10:14:54 -0700 Cc: gcc-patches@gcc.gnu.org, Richard Sandiford Message-Id: References: <878utfe5g0.fsf@talisman.default> <53807FD2.6060805@t-online.de> To: Bernd Schmidt X-IsSubscribed: yes On May 24, 2014, at 4:17 AM, Bernd Schmidt wrote: > On 02/13/2014 10:18 AM, Richard Sandiford wrote: >> contrib/ >> * dg-extract-results.py: New file. >> * dg-extract-results.sh: Use it if the environment seems suitable. > > I'm now seeing the following: > > Traceback (most recent call last): > File "../../git/gcc/../contrib/dg-extract-results.py", line 581, in > Prog().main() > File "../../git/gcc/../contrib/dg-extract-results.py", line 569, in main > self.output_tool (self.runs[name]) > File "../../git/gcc/../contrib/dg-extract-results.py", line 534, in output_tool > self.output_variation (tool, variation) > File "../../git/gcc/../contrib/dg-extract-results.py", line 483, in output_variation > for harness in sorted (variation.harnesses.values()): > TypeError: unorderable types: HarnessRun() < HarnessRun() > > $ /usr/bin/python --version > Python 3.3.3 Seems unfortunate… I’d put in a, if on 3.3 or later, don’t use line until a python person can address it. Can you try something like the below and see if it works better for you… If it does, I’d approve it, if you would like to put it in. Index: dg-extract-results.sh =================================================================== --- dg-extract-results.sh (revision 210894) +++ dg-extract-results.sh (working copy) @@ -32,7 +32,7 @@ PROGNAME=dg-extract-results.sh PYTHON_VER=`echo "$0" | sed 's/sh$/py/'` if test "$PYTHON_VER" != "$0" && test -f "$PYTHON_VER" && - python -c 'import sys; sys.exit (0 if sys.version_info >= (2, 6) else 1)' \ + python -c 'import sys; sys.exit (0 if sys.version_info >= (2, 6) and sys.version_info < (3, 3) else 1)' \ > /dev/null 2> /dev/null; then exec python $PYTHON_VER "$@" fi