From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 54ECE1F47C for ; Sat, 14 Jan 2023 08:30:53 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=JJOQdWx3; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbjANIau (ORCPT ); Sat, 14 Jan 2023 03:30:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbjANIar (ORCPT ); Sat, 14 Jan 2023 03:30:47 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10E75B88 for ; Sat, 14 Jan 2023 00:30:44 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id u9so57348936ejo.0 for ; Sat, 14 Jan 2023 00:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JSnD3oj50yMKxc2IjMOHpDrQQSmCGlPi0WGyE394pEY=; b=JJOQdWx3JdaD45v+dnmwHYcsZdzyR1q5h6yeaIIT0LjYgpG1mtwgc5kE/A5p+kBnlh S1M89+b1vAETfxJgKv4TPydrd3DdTV7mtNhHv/pzn+ovMkx9VUcD6Rft6XJbzVF/Ngdu rURVmL+A0dRN+QvU0pIoDe86MhE51c9qWnPOchvAkSHk532gKLL6nUPElAB3YTUlPq0+ iBwuW2n0WD8KBsWwPDjDu+15OLxhu16FwaeqS9Aj6qAajb6cBTsaCXCkCyGIlYzwVRxW 6IFSlw0WMS/UpD1g5kNwWm/DuC3VPrkgkX6iselqz3yo2HJILNZ1Qzte7neR8jycGMER aGMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JSnD3oj50yMKxc2IjMOHpDrQQSmCGlPi0WGyE394pEY=; b=cqVbAQwhlqz1ZA9GcOj4d7JZvopc/6Cf6F2JjkDdk9GG1O4I2NFC1g3yppnKmb6nAn CsjaVEHoO4+44P6NfufoQPmuBmn2u+ooOo1wf3qxjGVc+GrAu0jBQso8OaWKy2RSoHEn jYYqn2WCrI4DIYXKXjiyarDQmKfhx7uQakSW7rJtsweP/G+Vdre8sdhD0rRMgjDPLWd+ ic1BBJZD2zYjMX9n0dElRRnvkjoSrL7fp+rL+UEUGuTEqXrlJMZeZlZuz+g4SV31zl6V Per0ZY8wA0120s/aBnVesAJYNUio9NknYtA1YE42UwSDy8PDUwUtgFkS82wBp6/HhAQS wWow== X-Gm-Message-State: AFqh2kqvFiZwe6Ts1VyinJJ7nGv59SeoxPhW8Dwwgx5b6rXxVdJ9B/BA HNc28MoE2/EWB5i/dL1rcFJZx970fyY= X-Google-Smtp-Source: AMrXdXtgI7JPe4o86gfyXpHgRPUgOiJvumVRAgSrc4BcUyNTWWz8wiQas0q+MgbsueBxIcxIX4mDBg== X-Received: by 2002:a17:907:2908:b0:85b:9540:4ca7 with SMTP id eq8-20020a170907290800b0085b95404ca7mr11343208ejc.30.1673685042979; Sat, 14 Jan 2023 00:30:42 -0800 (PST) Received: from archlinux.fritz.box ([2a02:2454:574:5100:bfcd:791:c83b:983c]) by smtp.gmail.com with ESMTPSA id e20-20020a170906249400b0084d4cb00f0csm6519089ejb.99.2023.01.14.00.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jan 2023 00:30:42 -0800 (PST) From: Karthik Nayak To: git@vger.kernel.org Cc: phillip.wood@dunelm.org.uk, sunshine@sunshineco.com, Karthik Nayak , toon@iotcl.com Subject: [PATCH v7 1/2] t0003: move setup for `--all` into new block Date: Sat, 14 Jan 2023 09:30:37 +0100 Message-Id: <622475417916cf48b8fb48e3587f6c87750d43ed.1673684790.git.karthik.188@gmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org There is some setup code which is used by multiple tests being setup in `attribute test: --all option`. This means when we run "sh ./t0003-attributes.sh --run=setup," there is a chance of failing since we missed this setup block. So to ensure that setups are independent of test logic, move this to a new setup block. Signed-off-by: Karthik Nayak Co-authored-by: toon@iotcl.com --- t/t0003-attributes.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index f7ee2f2ff0..b3aabb8aa3 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -203,9 +203,12 @@ test_expect_success 'attribute test: read paths from stdin' ' test_cmp expect actual ' -test_expect_success 'attribute test: --all option' ' +test_expect_success 'setup --all option' ' grep -v unspecified specified-all && - sed -e "s/:.*//" stdin-all && + sed -e "s/:.*//" stdin-all +' + +test_expect_success 'attribute test: --all option' ' git check-attr --stdin --all tmp && sort tmp >actual && test_cmp specified-all actual -- 2.39.0