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

Re: Solaris test failure -- FAIL 61: invalid bool (set)

From
Jeff King <peff@peff.net>
Date
Feb 20, 2008, 05:04 UTC
Message-ID
<20080220050420.GA16745@coredump.intra.peff.net>
In-Reply-To
<8ec76080802191611s3348beb1icd0b24db8b0a9556@mail.gmail.com>
On Tue, Feb 19, 2008 at 07:11:01PM -0500, Whit Armstrong wrote:
> That certainly fixes t1300-repo-config.sh.
> 
> I must be seeing the same failures as you ( in t3404-rebase-interactive.sh ).

I actually was seeing errors later in t1300, but they were fixed by putting GNU coreutils at the front of my path (btw, we had discussed previously using "diff -u" to compare actual and expected output in many tests -- Solaris diff doesn't understand "-u").

I see the errors in t3404. They are caused by the Solaris /bin/sh not understanding $() syntax. We create a "fake-editor" script to simulate the editor during interactive rebase, and it is hard-coded to /bin/sh.

So we should probably do something like:
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index e5ed745..62e65d7 100755
--- a/t/t3404-rebase-interactive.sh
+++ b/t/t3404-rebase-interactive.sh
@@ -61,8 +61,8 @@ test_expect_success 'setup' '
 	git tag I
 '
 
-cat > fake-editor.sh <<\EOF
-#!/bin/sh
+echo "#!$SHELL" >fake-editor
+cat >> fake-editor.sh <<\EOF
 case "$1" in
 */COMMIT_EDITMSG)
 	test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"

There are probably more instances of this problem, but I haven't
checked. I had high hopes of running the testsuite to completion
tonight, but I am getting stuck now in t3900.

-Peff
Previous: Whit Armstrong
Message 9 of 9 in “Solaris test failure -- FAIL 61: invalid bool (set)”
  1. Whit ArmstrongFeb 19, 2008
  2. Johannes SchindelinFeb 19, 2008
  3. Whit ArmstrongFeb 19, 2008
  4. Johannes SchindelinFeb 19, 2008
  5. Jeff KingFeb 19, 2008
  6. Jeff KingFeb 19, 2008
  7. Jeff KingFeb 19, 2008
  8. Whit ArmstrongFeb 20, 2008
  9. Jeff KingFeb 20, 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.