git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Install on opensolaris 2008.05

From
Jeff King <peff@peff.net>
Date
Aug 17, 2008, 20:03 UTC
Message-ID
<20080817200321.GA17785@sigill.intra.peff.net>
In-Reply-To
<7a675f570808170555ie640c86jb5561cc6f7b68c73@mail.gmail.com>
On Sun, Aug 17, 2008 at 08:55:57AM -0400, Sean Brandt wrote:
>  I'm installing on opensolaris 2008.05 and the tests fail in
> t0002-gitfile.sh  ( test numbers 2 and 3 ) is this expected/ok?

No, it's not expected nor ok (though it there is a reasonable chance it is a portability problem in the test script, and not a real git breakage).

What does
  make test GIT_TEST_OPTS="-v -i"
tell you?
>                 if ! grep -qe "Invalid gitfile format" .err
Just a guess, but I think Solaris grep doesn't understand "-q".
Does the patch below help?
---
diff --git a/t/t0002-gitfile.sh b/t/t0002-gitfile.sh
index 4db4ac4..e4970fe 100755
--- a/t/t0002-gitfile.sh
+++ b/t/t0002-gitfile.sh
@@ -32,7 +32,7 @@ test_expect_success 'bad setup: invalid .git file format' '
 		echo "git rev-parse accepted an invalid .git file"
 		false
 	fi &&
-	if ! grep -qe "Invalid gitfile format" .err
+	if ! grep -e "Invalid gitfile format" .err
 	then
 		echo "git rev-parse returned wrong error"
 		false
@@ -46,7 +46,7 @@ test_expect_success 'bad setup: invalid .git file path' '
 		echo "git rev-parse accepted an invalid .git file path"
 		false
 	fi &&
-	if ! grep -qe "Not a git repository" .err
+	if ! grep -e "Not a git repository" .err
 	then
 		echo "git rev-parse returned wrong error"
 		false
Previous: Sean BrandtNext: Sean Brandt
Message 2 of 4 in “Install on opensolaris 2008.05”
  1. Sean BrandtAug 17, 2008
  2. Jeff KingAug 17, 2008
  3. Sean BrandtAug 17, 2008
  4. Pierre HabouzitAug 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.