# t9400-git-cvsserver-server failures

3 messages from 2007-06-27 to 2007-06-27. Participants: Brian Gernhardt, Frank Lichtenheld.
Thread: https://gitlist.dev/t/8744

## Brian Gernhardt, 2007-06-27 03:07

Subject: t9400-git-cvsserver-server failures
Message-ID: <3E98C380-541B-479F-9E8F-6BBE82EE2930@silverinsanity.com>
URL: https://gitlist.dev/e/3E98C380-541B-479F-9E8F-6BBE82EE2930%40silverinsanity.com

```
I'm getting several failures in the git-cvsserver tests.  I don't  
even know where to start with that code, so here's as detailed an  
error report as I can give.

The first category appears to be that several of the tests use  
test_expect_failure, which expects the error codes to be less than  
127 and the error it gets is 255 (-1).

* FAIL 9: req_Root failure (strict-paths)
         cat request-anonymous | git-cvsserver --strict-paths pserver  
$WORKDIR >log 2>&1
* FAIL 11: req_Root failure (w/o strict-paths)
         cat request-anonymous | git-cvsserver pserver $WORKDIR/ 
gitcvs >log 2>&1
* FAIL 13: req_Root failure (base-path)
         cat request-anonymous | git-cvsserver --strict-paths --base- 
path $WORKDIR pserver $SERVERDIR >log 2>&1


The other seems to be that git-cvsserver is erroring with "error 1  
Conflicting roots specified" unexpectedly.  The log has the expected  
"I LOVE YOU" line, but then also has an error line.

* FAIL 12: req_Root (base-path)
         cat request-base | git-cvsserver --strict-paths --base-path  
$WORKDIR/ pserver $SERVERDIR >log 2>&1 &&
            tail -n1 log | grep -q "^I LOVE YOU$"
* FAIL 16: req_Root (everything together)
         cat request-base | git-cvsserver --export-all --strict-paths  
--base-path $WORKDIR/ pserver $SERVERDIR >log 2>&1 &&
            tail -n1 log | grep -q "^I LOVE YOU$"


And, finally, one test fails because apparently the environment is  
not set up as it expects.

* FAIL 14: req_Root (export-all)
         cat request-anonymous | git-cvsserver --export-all pserver  
$WORKDIR >log 2>&1 &&
            tail -n1 log | grep -q "^I LOVE YOU$"

This fails with:

E GITCVS emulation needs to be enabled on this repo
E the repo config file needs a [gitcvs] section added, and the  
parameter 'enabled' set to 1
E
error 1 GITCVS emulation disabled
E Invalid root /Users/brian/dev/git/t/trash/gitcvs.git

I checked gitcvs.git/config, and it has "[gitcvs] enabled = false".

~~ Brian

```

## Brian Gernhardt, 2007-06-27 13:08

Subject: Re: t9400-git-cvsserver-server failures
Message-ID: <DA4A2395-33EA-4209-A1DE-E6CAB55C94AD@silverinsanity.com>
URL: https://gitlist.dev/e/DA4A2395-33EA-4209-A1DE-E6CAB55C94AD%40silverinsanity.com
In-Reply-To: <3E98C380-541B-479F-9E8F-6BBE82EE2930@silverinsanity.com>

```

On Jun 26, 2007, at 11:07 PM, Brian Gernhardt wrote:

> I'm getting several failures in the git-cvsserver tests.  I don't  
> even know where to start with that code, so here's as detailed an  
> error report as I can give.
>
> The first category appears to be that several of the tests use  
> test_expect_failure, which expects the error codes to be less than  
> 127 and the error it gets is 255 (-1).
>
> * FAIL 9: req_Root failure (strict-paths)
>         cat request-anonymous | git-cvsserver --strict-paths  
> pserver $WORKDIR >log 2>&1
> * FAIL 11: req_Root failure (w/o strict-paths)
>         cat request-anonymous | git-cvsserver pserver $WORKDIR/ 
> gitcvs >log 2>&1
> * FAIL 13: req_Root failure (base-path)
>         cat request-anonymous | git-cvsserver --strict-paths --base- 
> path $WORKDIR pserver $SERVERDIR >log 2>&1

Running the tests again this morning after a fresh pull results in  
only the above failures occurring.  I looked through git- 
cvsserver.perl and couldn't find any exit(-1) or similar.  Anyone  
have any idea where to start to fix these?

~~ Brian

```

## Frank Lichtenheld, 2007-06-27 15:07

Subject: Re: t9400-git-cvsserver-server failures
Message-ID: <20070627150700.GE12721@planck.djpig.de>
URL: https://gitlist.dev/e/20070627150700.GE12721%40planck.djpig.de
In-Reply-To: <DA4A2395-33EA-4209-A1DE-E6CAB55C94AD@silverinsanity.com>

```
On Wed, Jun 27, 2007 at 09:08:16AM -0400, Brian Gernhardt wrote:
> Running the tests again this morning after a fresh pull results in  
> only the above failures occurring.  I looked through git- 
> cvsserver.perl and couldn't find any exit(-1) or similar.  Anyone  
> have any idea where to start to fix these?

Look for "die", it exits with such an error code by default.
Will try to look into the issues later.

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

```
