Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2051002imj; Fri, 8 Feb 2019 11:42:15 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaixp/FXqsqHkq+j45soUJEXJ0yxDzaubU/T327WbWe2CYxuNpNNC3pdxCUHgwBcBnoebhw X-Received: by 2002:a63:5107:: with SMTP id f7mr6685452pgb.218.1549654935071; Fri, 08 Feb 2019 11:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549654935; cv=none; d=google.com; s=arc-20160816; b=Lxp/9KCzeO9miKzN1BYyZsuCXWKodpJvf9h5YO7cWtZFlEUlTnuaq7C/mb8gUvW/NU 10KwdoRr1/TxfSWRXdexPkzopeeLnA+Jfu9rqs2dAZRlX6j/kRQ+D0Al8aoN76q9gezz vIUmyXNsM/LRbK+9+kkUEA06fvnHXObKKsVbSESPLLKqiCj5qMlAKkWM6UQlxFzgM+pN STSiMH9JcTsHXUYbGYWl1pFQDWRcgJinyl39tkYaYPpi1s1R+EQPV3Baq3fGrJzGxlI7 qZbqQoL6V5H1P+WxEuUlLUTnpIKN98BY9LAccNyx1DWk7GcP4uMuBkbkFKP8MX/lrmI9 G3mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Yxu/7H2R/XfWzsz8vDVPeDE6U+IMrGeZmhBtlUvGj1Y=; b=f/vKPPwYBfnbdFnlMuFTAbSbZeD5/z3Xoo3P+6fy3Od1f1/Kcp2bnGZ4N5Q1Q+CeQl J5QeDccN29Q/BRsmsRTVlJO8jS+KdnzBYom9BoaT04c3pzj2bIjaTQK2puWAnxgCTTIB VgnN6yC5CXclpvXaODY1tNL7E5O0gG3hOLpEJpGSyz842AsiI84RWlAAWcgyr+0sjx44 EPRJ+wyQonfncB0e5Mix5fK0pkggJN/+OsCIQedamV8MsjsoTMdaI8+P29NMQandS3hz RGuBoZ/5xhMS2Cj1W+AAHvKDQ1Gp21j4hW9YpmjBbU/5hj3LABmY7BgMwdQAtAQ/SXYV M8zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si2887172pgm.28.2019.02.08.11.41.34; Fri, 08 Feb 2019 11:42:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727231AbfBHTLf (ORCPT + 99 others); Fri, 8 Feb 2019 14:11:35 -0500 Received: from bsmtp8.bon.at ([213.33.87.20]:54882 "EHLO bsmtp8.bon.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfBHTLf (ORCPT ); Fri, 8 Feb 2019 14:11:35 -0500 X-Greylist: delayed 2517 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 Feb 2019 14:11:34 EST Received: from bsmtp7.bon.at (unknown [192.168.181.107]) by bsmtp8.bon.at (Postfix) with ESMTPS id 43x3cf1yltz5tvh for ; Fri, 8 Feb 2019 19:29:38 +0100 (CET) Received: from dx.site (unknown [93.83.142.38]) by bsmtp7.bon.at (Postfix) with ESMTPSA id 43x3cZ4C53z5tlB; Fri, 8 Feb 2019 19:29:34 +0100 (CET) Received: from [IPv6:::1] (localhost [IPv6:::1]) by dx.site (Postfix) with ESMTP id 70B72211F; Fri, 8 Feb 2019 19:29:33 +0100 (CET) Subject: Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop) To: Jeff King , "Randall S. Becker" Cc: 'Junio C Hamano' , git@vger.kernel.org, 'Linux Kernel' , git-packagers@googlegroups.com References: <000f01d4bf9e$a508eab0$ef1ac010$@nexbridge.com> <20190208165052.GC23461@sigill.intra.peff.net> <001101d4bfd6$b9430230$2bc90690$@nexbridge.com> <20190208180321.GB27673@sigill.intra.peff.net> From: Johannes Sixt Message-ID: <0694f2f1-040a-1d8c-cd01-2cf51cdbe426@kdbg.org> Date: Fri, 8 Feb 2019 19:29:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190208180321.GB27673@sigill.intra.peff.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 08.02.19 um 19:03 schrieb Jeff King: > On Fri, Feb 08, 2019 at 12:49:59PM -0500, Randall S. Becker wrote: >> Would you object to something like this: >> >> if [ ! -e /dev/zero ]; then >> # use shred or some other mechanism (still trying to figure out a solution) >> else >> # existing dd >> fi > > That's fine, as long as it's wrapped up in a function in order to keep > the tests readable. > > Though I suspect we may be able to just find a solution that works > everywhere, without having two different implementations. If we know we > need $count bytes for dd, we could probably just generate a file with > that many NULs in it. > > Other cases don't seem to actually care that they're getting NULs, and > are just redirecting stdin from /dev/zero to get an infinite amount of > input. They could probably use "yes" for that. If the data does not have to be a sequence of zero bytes, the alternatives are: * `test-genrandom seed-string $size` for a sequence of reproducible "random" bytes * `printf "%0*d" $size 0` for a sequence of '0' characters. In t5318, the zero bytes do matter, though. -- Hannes