From patchwork Thu Jul 27 20:41:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Pfaff X-Patchwork-Id: 794567 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xJP6H1hw0z9s78 for ; Fri, 28 Jul 2017 06:41:59 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 89CD8B94; Thu, 27 Jul 2017 20:41:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 234D2B92 for ; Thu, 27 Jul 2017 20:41:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B42223E0 for ; Thu, 27 Jul 2017 20:41:15 +0000 (UTC) X-Originating-IP: 208.91.2.3 Received: from sigabrt.benpfaff.org (unknown [208.91.2.3]) (Authenticated sender: blp@ovn.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id F4142C5A54; Thu, 27 Jul 2017 22:41:12 +0200 (CEST) From: Ben Pfaff To: dev@openvswitch.org Date: Thu, 27 Jul 2017 13:41:06 -0700 Message-Id: <20170727204106.7772-2-blp@ovn.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170727204106.7772-1-blp@ovn.org> References: <20170727204106.7772-1-blp@ovn.org> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Ben Pfaff Subject: [ovs-dev] [PATCH 2/2] travis: Fail the build if any of the Linux build preparations fail. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org We want the build to fail if we can't prepare properly for it, but linux-prepare.sh ignored errors. This fixes the problem. This would have made it more obvious where the problem fixed by the previous commit originated. (osx-prepare.sh already does the right thing.) Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- .travis/linux-prepare.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis/linux-prepare.sh b/.travis/linux-prepare.sh index b73088d4a132..3295a5b5c7fb 100755 --- a/.travis/linux-prepare.sh +++ b/.travis/linux-prepare.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -ev + # Build and install sparse. # # Explicitly disable sparse support for llvm because some travis