git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Skip unwritable tests for root
@ 2008-06-30  7:05 Fernando J. Pereda
  2008-06-30  7:39 ` Jakub Narebski
  2008-06-30  9:08 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Fernando J. Pereda @ 2008-06-30  7:05 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

Signed-off-by: Fernando J. Pereda <ferdy@ferdyx.org>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-07 22:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30  7:05 [PATCH] Skip unwritable tests for root Fernando J. Pereda
2008-06-30  7:39 ` Jakub Narebski
2008-06-30  9:08 ` Junio C Hamano
2008-06-30  9:27   ` Fernando J. Pereda
2008-07-07 19:14   ` Lea Wiemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).