From: Marco Nelissen Date: Sun, 14 Jun 2009 01:41:51 GMT Subject: Re: running git as root Message-ID: <3a3d9e520906131841i2e67994fqf323140f95c37d5e@mail.gmail.com> In-Reply-To: <81b0412b0906131049v60cfbc9bm3fd26cc25acc2cd4@mail.gmail.com> On Sat, Jun 13, 2009 at 10:49 AM, Alex Riesen wrote: > 2009/6/13 Marco Nelissen : >> When running as root, git fails a number of test cases that expect it >> to fail on read-only repositories (for example 't0004-unwritable.sh'). >> I was thinking of either changing the code so that it checks >> permissions itself when opening files as root, or add a prerequisite >> to those test cases so that they are skipped when running as root. > > There is such a prerequisite already (POSIXPERM), but what caused > you to run the _tests_ as root? POSIXPERM doesn't appear to be quite right for this. For example, the 't1301-shared-repo.sh' test has the POSIXPERM prereq, but it runs fine as root, because it merely validates that permissions are preserved.