Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1961403imj; Fri, 8 Feb 2019 10:05:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IY5MxW0LWzihypTkZ0a19dooL27w8NapeKkzHfPSNaJr79sqKPdv7As6l1gvqEMB6F9BOnK X-Received: by 2002:a17:902:bd8e:: with SMTP id q14mr2719251pls.153.1549649122392; Fri, 08 Feb 2019 10:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549649122; cv=none; d=google.com; s=arc-20160816; b=ihOixBZ3CNbk7xuBsLh7YawUT1xqNV4ruMz+ZBGsG4ltXiZG80t6cRrbMtjq9EiYwS W0YUi6g8lfczXIEuu8gPG3lyYyxuL5CgGCTqP+lOSksBTNPJKyRUF/2yNRMKpQdCHUlR no+ekcIg1T+gigqIIC2iC4vxngsjjJJtU/qNLgXIor/024oyVycpf4TukxCUNef1jMg7 0/AZL6S5nKP/NwGdjuuE/VSPl+MZwGslSQHErObTeZbQ9OT09ISBYrlnoPO74l9QEvog +5lfzEeAtbGsDYuFZi8Mod28CWU+bXaQTg92qEP3gg/lm0fTxrQQvcwMoUceM0YyZ3ES uL2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=HSx6jrPPT0zBEEELpKQ9Vl+GbKW6CBfqjuJqHhotvLI=; b=vJPSyFcMuQJC++PuYwvY8OnI2nX2EWsMgdBWV341fICJkM1X+avau2/gMC/GHGirNJ 54v/VLbQzqM7j0LlfF1lZFYhV7RfsIft0Z4h44WNt3+lowfouUhC/R8g1bvBeqUtLJ+S nwdcV6Mfopk3RI4tBgegVkSdiGPgQtX1MVbVJlQvKpA4VRzuz0Jzg8pO9oMxO4If45BP Rmngwcepnu7OMDL8XRWSTPh075Hn4p/AS03yGkHyH7l9z8gM9d6XcvLp0hQCx+UaGH+r 7etehbEPIjppl/OVE8fGCTNLqkBr3FDCcw+Ezt2UZQgnUB6gHnnAOq+bsAywWNg76kza 39VA== 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 31si2883836plz.263.2019.02.08.10.05.05; Fri, 08 Feb 2019 10:05:22 -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 S1728009AbfBHSDX (ORCPT + 99 others); Fri, 8 Feb 2019 13:03:23 -0500 Received: from cloud.peff.net ([104.130.231.41]:37766 "HELO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727641AbfBHSDX (ORCPT ); Fri, 8 Feb 2019 13:03:23 -0500 Received: (qmail 9613 invoked by uid 109); 8 Feb 2019 18:03:23 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with SMTP; Fri, 08 Feb 2019 18:03:23 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 25882 invoked by uid 111); 8 Feb 2019 18:03:32 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.94) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) SMTP; Fri, 08 Feb 2019 13:03:32 -0500 Authentication-Results: peff.net; auth=none Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Fri, 08 Feb 2019 13:03:21 -0500 Date: Fri, 8 Feb 2019 13:03:21 -0500 From: Jeff King To: "Randall S. Becker" Cc: 'Junio C Hamano' , git@vger.kernel.org, 'Linux Kernel' , git-packagers@googlegroups.com Subject: Re: [Breakage] Git v2.21.0-rc0 - t5318 (NonStop) Message-ID: <20190208180321.GB27673@sigill.intra.peff.net> References: <000f01d4bf9e$a508eab0$ef1ac010$@nexbridge.com> <20190208165052.GC23461@sigill.intra.peff.net> <001101d4bfd6$b9430230$2bc90690$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <001101d4bfd6$b9430230$2bc90690$@nexbridge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 12:49:59PM -0500, Randall S. Becker wrote: > > We did discuss this at the time of the patch, but it seems we already use > > /dev/zero in a bunch of places: > > > > https://public-inbox.org/git/xmqqbm57rkg5.fsf@gitster-ct.c.googlers.com/ > > > > Were you just skipping the other tests before? > > I did not catch the implications of the review at the time - my bad. We were not intentionally skipping the tests. It looks like some are automatically skipped. t4153 automatically skips (missing TTY), and t5562 fails also but for a different reason (hang - we don't have apache2 to serve up http content). > > 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. -Peff