From: Fernando J. Pereda Date: Mon, 30 Jun 2008 07:05:51 GMT Subject: [PATCH] Skip unwritable tests for root Message-ID: <1214809551-14603-1-git-send-email-ferdy@ferdyx.org> Signed-off-by: Fernando J. Pereda --- t/t0004-unwritable.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/t/t0004-unwritable.sh b/t/t0004-unwritable.sh index 9255c63..728ec22 100755 --- a/t/t0004-unwritable.sh +++ b/t/t0004-unwritable.sh @@ -4,6 +4,13 @@ test_description='detect unwritable repository and fail correctly' . ./test-lib.sh +if test "$(id -u)" -eq 0 +then + test_expect_success 'root writes to unwritable places, skipping test' : + test_done + exit +fi + test_expect_success setup ' >file && -- 1.5.6.1