From patchwork Thu Mar 26 08:27:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 11459603 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF5CE1668 for ; Thu, 26 Mar 2020 08:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0B3A2078E for ; Thu, 26 Mar 2020 08:28:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qch2kaPr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727738AbgCZI2d (ORCPT ); Thu, 26 Mar 2020 04:28:33 -0400 Received: from mail-qv1-f66.google.com ([209.85.219.66]:35860 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727682AbgCZI2c (ORCPT ); Thu, 26 Mar 2020 04:28:32 -0400 Received: by mail-qv1-f66.google.com with SMTP id z13so2495040qvw.3 for ; Thu, 26 Mar 2020 01:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=sBVr0xFCoRHeS2xGCDPImGVaY6u3pSWB1zUmqkoPxT8=; b=Qch2kaPrmZaiI89sONrx8VG/o83WtNMel+c33HQiOJbpQZM+LeUu5ae0sz02A+Ijll UVrMfQxsDE4f5qZVA7K5FcS4ixQdYXMnsIlBmqMw2V96pdXI3kaiV14aPSYBYxTmwcIO KfAEuQXkleWMKpDM/bv1a5plqgtjLzBUG1op/ivuMSXvYcg4LvH7ZKK0MCZaAHKUZZpE HExPr030pw8W2ygH9ns2lCKrfpq/uOUe1ZnQ4FsPbs3dB65x1p4jRzFgGtSXbETL+8ab gFq0c1h2gperC+z6UvK6iBSf+Lervke1u/ew95F1PWxMBkGha5GUh8zgr244G/IlAKij PsQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sBVr0xFCoRHeS2xGCDPImGVaY6u3pSWB1zUmqkoPxT8=; b=im1fb38V6LORECeFuiwbwimQZ+jauqPsLmOYbX8r90M3CnfZaTnGByaA1NelfwgyvC 94jGTB/MpaJtGu/PNmYCkbOl8wUau09tbYndjhMv5Cg2YbDJwFnuCWtPQ0rxDIDiQIG7 dx7huh7JOV0kPaZ3Mgud2JkcfFjjMDpWxna6F//7SYnGVMW2EBCwwKEYUM+q3xwUYBrw BB6hDWcTQGM93mPgiL1wMIq8qAJVNDJqt/qBEuskLswd6xex9ZaYZerzU8vKJxG2X+Mt UOl2x3ENPSgJhH2XkjOhr0/nQiLSj+9aAzfxEIiqjFRNJkvp/4DR7mK7nD34GOcmoB+y ZO8Q== X-Gm-Message-State: ANhLgQ2ejTE38siKaqLPahiMzeI97xLVVN74GOvzq57WMyBq+JcDr8hr vxzcNv6PbR3CxfneoGV6VjnuXRmL X-Google-Smtp-Source: ADFU+vudDsRXacsb5UHU+7DRX9162/HEh+raLzqfJIwMFhdSc6F59zXRwR6f1STY00TGqmE1XI+1HQ== X-Received: by 2002:ad4:5648:: with SMTP id bl8mr6829840qvb.189.1585211311114; Thu, 26 Mar 2020 01:28:31 -0700 (PDT) Received: from archbookpro.lan ([199.249.110.29]) by smtp.gmail.com with ESMTPSA id g187sm935789qkf.115.2020.03.26.01.28.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 01:28:30 -0700 (PDT) From: Denton Liu To: Git Mailing List Subject: [PATCH v2 5/8] t5607: reorder `nongit test_must_fail` Date: Thu, 26 Mar 2020 04:27:52 -0400 Message-Id: <4955b701e1f961e592e1c0c6567e28cbc12b3c14.1585209554.git.liu.denton@gmail.com> X-Mailer: git-send-email 2.26.0.159.g23e2136ad0 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org In the future, we plan on only allowing `test_must_fail` to work on a restricted subset of commands, including `git`. Reorder the commands so that `nongit` comes before `test_must_fail`. This way, `test_must_fail` operates on a git command. Signed-off-by: Denton Liu --- t/t5607-clone-bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t5607-clone-bundle.sh b/t/t5607-clone-bundle.sh index 9108ff6fbd..6d5a977fcb 100755 --- a/t/t5607-clone-bundle.sh +++ b/t/t5607-clone-bundle.sh @@ -16,7 +16,7 @@ test_expect_success 'setup' ' test_expect_success '"verify" needs a worktree' ' git bundle create tip.bundle -1 master && - test_must_fail nongit git bundle verify ../tip.bundle 2>err && + nongit test_must_fail git bundle verify ../tip.bundle 2>err && test_i18ngrep "need a repository" err '