From patchwork Thu Jun 13 18:53:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10993509 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0D31D13AF for ; Thu, 13 Jun 2019 18:53:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F0B6822B27 for ; Thu, 13 Jun 2019 18:53:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4FCE23201; Thu, 13 Jun 2019 18:53:53 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 9337922B27 for ; Thu, 13 Jun 2019 18:53:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729418AbfFMSxp (ORCPT ); Thu, 13 Jun 2019 14:53:45 -0400 Received: from sonic314-24.consmr.mail.ne1.yahoo.com ([66.163.189.150]:39306 "EHLO sonic314-24.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729211AbfFMSxb (ORCPT ); Thu, 13 Jun 2019 14:53:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1560452010; bh=CcvPntN/9RNunK3FH9X4yrCmC/ZPUsAd6gwAhwvHSbI=; h=From:To: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C4OFKOx8c5D6JTmjKDI4IDy8GZAK4kxzUVmLj4sDxsephd9AlLAvTrIOMpje_hu2UvAy yX52rSiiqsvOJd.ou4y.IrR485.sKvKBbnIzTnjlCzzHoeW30sG0LSNk.VYUWrCnW4qX5cVMjtiA dopJu1UtY.31hCRUR.jBdciYJ2bebGPolMIvmKWGZk39AYTNhrzpDKv7hqotbPnpw0N5EIwX2O0. 1WLeGj2VRAiRuGjLcdwy06RI8FZiwKmrYOa2O5QYNnFMKnKrH_agMfFMqcGqvYgoN1lAbe4dOryR 0B8rUPTyr5swNcVfiwKXXRVsBC6A5Lpc2arJaC03sSejBkzkP9jPHb30qYr9AG7rSBoxsBXEVBwk 0FP.VvWjljZRq1AoX0qD98DdR62vPv2lrB7hsNvjFDUn4._jqZlSogvc85TuBT34RSjR5gxU4Vi0 _4wS_iMzckYNfWNFsI2L9cxgqPbcQHOk2hiH6BKPQuW6VzY9yPS1L9PIJUGGQ8bQRw.QpkZHtp4V a9zcwPlG6__u1_FdejQKCFda8TpjBl8v29I7Q9HgMwr4d0bYAbHf0StTElK9pUOpWOvXuQ11b2bB kls_zre65mWZvXlpsl.tDq5P65LM0vCzsJyY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Thu, 13 Jun 2019 18:53:30 +0000 Received: from CPE00fc8d49d843-CM00fc8d49d840.cpe.net.cable.rogers.com (EHLO localhost.localdomain) ([99.229.179.249]) by smtp432.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0df5561e6e714d6e0f0f0c310b112dc6; Thu, 13 Jun 2019 18:53:26 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch 1/5] t9600-cvsimport: exclude test if cvs is not installed Date: Thu, 13 Jun 2019 14:53:09 -0400 Message-Id: <20190613185313.16120-2-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20190613185313.16120-1-randall.s.becker@rogers.com> References: <20190613185313.16120-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" The t9600-cvsimport test requires the cvs package to be installed on the system on which the test is being run. The test will fail if cvs is not installed. The patch checks that cvs is installed by running the object without arguments, which should complete successfully if available. Signed-off-by: Randall S. Becker --- t/t9600-cvsimport.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t9600-cvsimport.sh b/t/t9600-cvsimport.sh index 251fdd66c4..d6bf38918b 100755 --- a/t/t9600-cvsimport.sh +++ b/t/t9600-cvsimport.sh @@ -3,6 +3,13 @@ test_description='git cvsimport basic tests' . ./lib-cvs.sh +cvs >/dev/null 2>&1 +if test $? -ne 1 +then + skip_all='skipping git-cvsimport tests, cvs not found' + test_done +fi + if ! test_have_prereq NOT_ROOT; then skip_all='When cvs is compiled with CVS_BADROOT commits as root fail' test_done