From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Sixt Subject: Re: Tests in Cygwin Date: Thu, 07 May 2009 09:13:14 +0200 Message-ID: <4A028A0A.5070003@viscovery.net> References: <83prfbhasp.fsf@kalahari.s2.org> <4A01E64C.7050703@SierraAtlantic.com> <7vvdoet13g.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Don Slutz , Hannu Koivisto , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu May 07 09:13:31 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1M1xnO-0002kM-C0 for gcvg-git-2@gmane.org; Thu, 07 May 2009 09:13:30 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752007AbZEGHNU (ORCPT ); Thu, 7 May 2009 03:13:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751667AbZEGHNU (ORCPT ); Thu, 7 May 2009 03:13:20 -0400 Received: from lilzmailso02.liwest.at ([212.33.55.13]:55785 "EHLO lilzmailso02.liwest.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751308AbZEGHNT (ORCPT ); Thu, 7 May 2009 03:13:19 -0400 Received: from cm56-163-160.liwest.at ([86.56.163.160] helo=linz.eudaptics.com) by lilzmailso02.liwest.at with esmtpa (Exim 4.69) (envelope-from ) id 1M1xn8-00052Y-Jd; Thu, 07 May 2009 09:13:14 +0200 Received: from [127.0.0.1] (J6T.linz.viscovery [192.168.1.96]) by linz.eudaptics.com (Postfix) with ESMTP id 49C2154D; Thu, 7 May 2009 09:13:14 +0200 (CEST) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <7vvdoet13g.fsf@alter.siamese.dyndns.org> X-Enigmail-Version: 0.95.5 X-Spam-Score: -1.4 (-) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano schrieb: > Don Slutz writes: > >> A lot of these failures are do to running as root (member of >> Administrators).... > > Perhaps we can do this to reduce the noise level. Thank you for this patch. Unfortunately, it does not work as intended because the call to test_have_prereq in test_skip does not split the prereq tokens so that tests with space-separated prerequisite tokens are always skipped. My first attempt to solve that is to remove the quotes from the test_have_prereq call in test_skip; but I think that this simple solution is rather unintuitive, and will look like a bug if you inspect the code again in two months. You could squash in the patch below, where I chose to concatenate tokens with '+' because I dislike the extra quoting that is otherwise necessary at the call site. The downside is that it plays games with IFS, which you might find too ugly and not worth it. It's your call. BTW, I didn't dare test this as root on my production system; I'll do that later today elsewhere. diff --git a/t/README b/t/README index a532c32..49c3a51 100644 --- a/t/README +++ b/t/README @@ -200,7 +200,7 @@ library for your script to use.