From patchwork Mon Jan 15 21:13:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10165365 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A779960325 for ; Mon, 15 Jan 2018 21:14:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9929325404 for ; Mon, 15 Jan 2018 21:14:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CE2D2674B; Mon, 15 Jan 2018 21:14:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8327A25404 for ; Mon, 15 Jan 2018 21:13:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750732AbeAOVN4 (ORCPT ); Mon, 15 Jan 2018 16:13:56 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:42377 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbeAOVNz (ORCPT ); Mon, 15 Jan 2018 16:13:55 -0500 Received: by mail-wm0-f65.google.com with SMTP id b141so4405647wme.1 for ; Mon, 15 Jan 2018 13:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GUmUytmT/IKGf+/BYTXYSsjtpi1eGWt2FvcwRZ63pxU=; b=brOZQ+nuTRcHWkdQ4QzNHqTV4A+hKtVhGoxiMeglAOxJ1/V7+WlXCb3VJPNSBUY7Ml E4UeqLJOb9APxIxSQOJMEI8fD6fLa7sd4g15LCBvoS769VFP6n4Ox4Q/CDjsuiEseSrg oB11nf9u98pWPMGYDNTb1nM8i+zfEjOMmo06e69lEPCTPncXMytoK57nZusXQehwUMWB 3LvajS/S2XmJwinMG4wTpetR+UV+4KE4PTRFKqEg9pKkUfZ4c4KDr3ekjV/m4I473CSy vgXQ1fPiClx2pyZAEHauvvo4r7kFU/s0JYqFTd7IgKrraDafLb2mpMHlwW77qJnXPrdI 7gkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GUmUytmT/IKGf+/BYTXYSsjtpi1eGWt2FvcwRZ63pxU=; b=iWgxcgQ19KjPywLJLcS5Nuasxvn8N2MqxJK7B7srfVQ0Vbvtryb5I7uIU4kubSUr2M g0TjoyfUSukS3c+vdJySOgYQJKMfbpIdH8KrEw4iJxgl2tLmbrbIye/zBC+SmLw4wpuU UmxA6Gcwnw0yswqDQjrG+NKRSKh5WCXezFhhK4kVKcjw6V6wlCH52rgnskxtW7AVKLhn lO19v+QzkNiNlws2/M2xHAS08N8s3I0WQRmP7hdRRPsuKYRGijVNOH9/wXp1rpoi5EDu m1wvVUo1IWynllJZaRhhOb34oD1eHjqBmjzH/aQ3mZNuR3aYCg6OqcgSZ/atqD7ryIkb 3kOg== X-Gm-Message-State: AKwxytf244SkMaxAgJKG+UqbyS9oQP4LrXvhBGU5VRLoGzHwItc8u++k LV8+Yg+fb0BSF+t1GLpBAFaG76ZgwrA= X-Google-Smtp-Source: ACJfBovQ2GioyegjqLutK59HPwsoFFtk8q0xnwCo8RMvsgC7Bdy5d+KaEFlilDxYD0BdYdaVxbkUxQ== X-Received: by 10.28.136.84 with SMTP id k81mr10307661wmd.62.1516050833978; Mon, 15 Jan 2018 13:13:53 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [70.74.179.152]) by smtp.gmail.com with ESMTPSA id 62sm963657wmo.33.2018.01.15.13.13.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 13:13:53 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1ebC4k-0001UX-HJ; Mon, 15 Jan 2018 14:13:50 -0700 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe Subject: [PATCH rdma-core 2/3] travis: Do not loose ninja output if ninja fails during sparse Date: Mon, 15 Jan 2018 14:13:46 -0700 Message-Id: <20180115211347.5651-3-jgg@ziepe.ca> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180115211347.5651-1-jgg@ziepe.ca> References: <20180115211347.5651-1-jgg@ziepe.ca> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Gunthorpe It turns out that cgcc is an older version of gcc on travis and can produce warnings that the prior gcc runs didn't, but due to how the output is filtered the messages are discarded totally. Ensure any output from ninja that is not a progress print is displayed. Signed-off-by: Jason Gunthorpe --- buildlib/travis-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildlib/travis-build b/buildlib/travis-build index bf86baa7432c6b..0efcbc60d18be5 100755 --- a/buildlib/travis-build +++ b/buildlib/travis-build @@ -30,9 +30,9 @@ cd ../build-sparse mv ../CMakeLists.txt ../CMakeLists-orig.txt grep -v "# NO SPARSE" ../CMakeLists-orig.txt > ../CMakeLists.txt CC=cgcc CFLAGS="-Werror" cmake -GNinja .. -ninja > out +ninja | grep -v '^\[' | tee out # sparse does not fail gcc on messages -if grep -v '^\[' out; then +if [ -s out ]; then false fi mv ../CMakeLists-orig.txt ../CMakeLists.txt