From patchwork Sat Jan 21 11:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Torsten_B=C3=B6gershausen?= X-Patchwork-Id: 13111063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0668C004D4 for ; Sat, 21 Jan 2023 11:05:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbjAULFR (ORCPT ); Sat, 21 Jan 2023 06:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjAULFP (ORCPT ); Sat, 21 Jan 2023 06:05:15 -0500 Received: from mout.web.de (mout.web.de [212.227.17.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4D3E17CF7 for ; Sat, 21 Jan 2023 03:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1674299111; bh=NjmOuabFZM3Lq+YsCDZRsqYisEQRhShDSCqhdpKSNQg=; h=X-UI-Sender-Class:From:To:Subject:Date; b=jkdmGGNXmVimByGbJLhnbJBMg3MxNGZhjmcl3vmpD3/E2cH/w9zx+9uKAEW48Zdd4 aSzzxmi0vMqOnmBW58ESXMb37IdOUna9c6ldy27ySNUMr2rvl6YnGK6g55xGugn6sR CybrTZlNO50kmKkZbHwyyzCwQdzt9TAwsgSDDZdUmDI/71fK0edOkvtzn8clH7yRnw 9WbuadKTV8HEdIWdHGga0JMy7OxU3+McrAGYED5eoMBIHaCQmKNfMEygTkdLv3wawD cMK7YMOmsZNCMVsmP4eF4s7trcpKascrIJyUHsPPE+AePg5DeG/+a2Wpq0UnsEizyN hs335qqO0tGWA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from localhost.localdomain ([62.20.115.19]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MGQGF-1pV4JO2gZh-00GeiL; Sat, 21 Jan 2023 12:05:11 +0100 From: tboegi@web.de To: tboegi@web.de, git@vger.kernel.org Subject: [PATCH v1 1/1] t0003: Call dd with portable blocksize Date: Sat, 21 Jan 2023 12:05:05 +0100 Message-Id: <20230121110505.21362-1-tboegi@web.de> X-Mailer: git-send-email 2.39.1.254.g904d404274 MIME-Version: 1.0 X-Provags-ID: V03:K1:C297Ed1DZUbVuqhScmfJcTrIln/gyVWH2qA/r9KvFqw2kJEu3Sz kWthjAw83MzWwq4yVUk48jPyovQx51ns/jRpDnkYOicUWO4MLv3DaJeUgN2SecuvJg3rB10 W/TgeXF1fsNrckGsJqS+p5nA2+KFdyiMwjlshK/l3OVTndfJ7mSaaMciDYtpQGtoVUi3YzQ ExD4XkR1wo48O5LKFOcYQ== UI-OutboundReport: notjunk:1;M01:P0:yBg+GZ28E1U=;4FSXMc5DAFRrM7TZa2oNs9ocdC6 jHY4h1gRoCmt5RzAPZlrKL1miicsb6EjhxwttyKO7g8rmoYwatGdge/keQ2IIMoqYI8NLmUcG YBNJxUK03tq77IaxU1MjHkoXcloOnEdpitM1KQIk0+Cf0j4FRoF4SIbtSQWAOlf+vNlm1i0Nv cDAKPHcRsjV2a2kUUQUT/5A7bgw+EPPZ7uwI7VmZ8FiunocPOrfhh6Q1XDNRWGOXIDC1HKoIm Ts1HKo0xrFZrl5M5SmGB8xISADxv/t79R2C/oI4Zp8GurU87yjQe38d1/WYqHTv0GjG40A5Ok uqVKXHohTZXMbK0sfPjih1WBgU4smnKhiBek1HGGlYaanwubE83H+GcjBo573baFhKoaFBUOs lLjLzNwt8Rovs+6CiAxoo5hpdsSWmO/EnkgwzjzmQyu0xzEciDRfSIXXsvc/0H/QHyX8ibgxT 9JsUKRbNvTS80XgoP+1Asnyekxx+yHQ6TJekk0DK/xba8ikvNFhYNnF2CejP+RqwhR298raAG GKUu7qwFV9mleu0MnGSEAMRXw4MThqwBXaHr7zZhuHa9dVh7wPaZLdNQ7CMC38NIbJ0H7EBJs OvK9xcnqjQYOorM054Mh50iupy0fMS4VMg86hkfhZAn4V6Y2B05heXnLM+X4rEaT+m6/E3DMv tIMWbMKKeOn80QROcRVMCBwTxVc04iWjENOSIBh75TWrnlWqsI9QQU0F3zeVVmKP7Xi2y9+z8 ROLeE3uf8Ez9VOxIOJ0aNwaiJbl96M+P9lmIpIi8B+aWuwigbPHh0pNCsqdXqTOQj6gjxP8uP i535nA7xp9DWfARGwkVb/e0LJ2/wKL0ScXcad5DmgF2XUed6CtOtNtIjINnGoxsqLNVr05dQl iL+OF3prRhPxw1tVJql6/VzxkVg4grpy/nHMOy6eab9qZYzUpl96lJpE57el0ngxY2ST4auKY PG07h3+DYpBY8gAv2qsdwIOoywo= Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Torsten Bögershausen The command `dd -bs=101M count=1` is not portable. Use `bs=1048576 count=101`, which does the same, instead. Signed-off-by: Torsten Bögershausen --- t/t0003-attributes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.39.1.254.g904d404274 diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index d0284fe2d7..394a08e6d6 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -400,7 +400,7 @@ test_expect_success 'large attributes line ignores trailing content in tree' ' test_expect_success EXPENSIVE 'large attributes file ignored in tree' ' test_when_finished "rm .gitattributes" && - dd if=/dev/zero of=.gitattributes bs=101M count=1 2>/dev/null && + dd if=/dev/zero of=.gitattributes bs=1048576 count=101 2>/dev/null && git check-attr --all path >/dev/null 2>err && echo "warning: ignoring overly large gitattributes file ${SQ}.gitattributes${SQ}" >expect && test_cmp expect err @@ -428,7 +428,7 @@ test_expect_success 'large attributes line ignores trailing content in index' ' test_expect_success EXPENSIVE 'large attributes file ignored in index' ' test_when_finished "git update-index --remove .gitattributes" && - blob=$(dd if=/dev/zero bs=101M count=1 2>/dev/null | git hash-object -w --stdin) && + blob=$(dd if=/dev/zero bs=1048576 count=101 2>/dev/null | git hash-object -w --stdin) && git update-index --add --cacheinfo 100644,$blob,.gitattributes && git check-attr --cached --all path >/dev/null 2>err && echo "warning: ignoring overly large gitattributes blob ${SQ}.gitattributes${SQ}" >expect &&