git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix testcase failure when extended attributes are in use
@ 2008-10-11 15:41 Deskin Miller
  2008-10-14  2:10 ` [PATCH v2] " Deskin Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Deskin Miller @ 2008-10-11 15:41 UTC (permalink / raw)
  To: spearce; +Cc: git, heikki.orsila

06cbe855 (Make core.sharedRepository more generic, 2008-04-16) made
several testcases in t1301-shared-repo.sh which fail if on a system
which creates files with extended attributes (e.g. SELinux), since ls
appends a '+' sign to the permission set in such cases.  This fixes the
testcase to strip any such sign prior to verifying the permission set.

Signed-off-by: Deskin Miller <deskinm@umich.edu>
---
Shawn, I read an email that said you'd maintain until Sunday the 12th, so I'm
sending this to you; if you want to punt to Junio, feel free.

Deskin Miller

 t/t1301-shared-repo.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh
index dc85e8b..b244f3e 100755
--- a/t/t1301-shared-repo.sh
+++ b/t/t1301-shared-repo.sh
@@ -83,7 +83,7 @@ do
 		rm -f .git/info/refs &&
 		git update-server-info &&
 		actual="$(ls -l .git/info/refs)" &&
-		actual=${actual%% *} &&
+		actual=$(echo "$actual" | sed -e "s/[+]\? .*$//") &&
 		test "x$actual" = "x-$y" || {
 			ls -lt .git/info
 			false
@@ -96,7 +96,7 @@ do
 		rm -f .git/info/refs &&
 		git update-server-info &&
 		actual="$(ls -l .git/info/refs)" &&
-		actual=${actual%% *} &&
+		actual=$(echo "$actual" | sed -e "s/[+]\? .*$//") &&
 		test "x$actual" = "x-$x" || {
 			ls -lt .git/info
 			false
-- 
1.6.0.2.307.gc427

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

end of thread, other threads:[~2008-10-20  5:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-11 15:41 [PATCH] Fix testcase failure when extended attributes are in use Deskin Miller
2008-10-14  2:10 ` [PATCH v2] " Deskin Miller
2008-10-17 23:58   ` Junio C Hamano
2008-10-19 12:24     ` Deskin Miller
2008-10-19 19:59       ` Junio C Hamano
2008-10-19 23:47         ` Deskin Miller
2008-10-20  5:52           ` Junio C Hamano

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).