[PATCH] Skip unwritable tests for root
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