Do you have localhost pointing to 127.0.0.1 in your hosts file?

Do you have http_proxy set in your environment? (it shouldn't be set when running the tests).

Do you have some other process running on port 8000?

Yes, the tests do start a depot server. I've found that certain types of failures can sometimes leave a depot server running and that making sure there are no depot servers running before starting the test will produce better results.

I've not found that the tests require an ON tree.
Tom

Shawn Walker wrote:
On Feb 11, 2008 8:03 PM, Tom Mueller <[EMAIL PROTECTED]> wrote:
Shawn,
I found that the tests have to be run as root, because they try to
change the user/group of files, and this can only be done as root.

I assume I can do "pfexec shell" and then run "make test" then.

Also, there are three tests that are missing a "-S $REPO_URL" in the
pkgsend command, so they fail if that is not fixed.

Joyous.

Well, I fixed those few places I found that problem.

I'm getting this at the moment, even when run under a "pfexec shell":

Redirecting all repository logging to stdout
kill: 1787: no such process
Redirecting all repository logging to stdout
PASS 0: Stop server, start again.
Traceback (most recent call last):
  File "/usr/bin/pkg", line 851, in ?
    ret = main_func()
  File "/usr/bin/pkg", line 784, in main_func
    ret = image_create(img, pargs)
  File "/usr/bin/pkg", line 754, in image_create
    img.retrieve_catalogs()
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
543, in retrieve_catalogs
    raise RuntimeError, (failed, total, succeeded)
RuntimeError: ([({'origin': 'http://localhost:8000', 'prefix': 'test',
'mirrors': None}, <HTTPError at 137555756 whose fp = <addinfourl at
137555532 whose fp = <socket._fileobject object at 0x832fc34>>>)], 1,
0)
*** case 1: expected exit status: 0, saw 99.

It looks like it can't connect to the depot server or something like that.

As far as I can tell, make test is supposed to start one for the tests?

The api-test completes; it's the cli-test, and the following ones that
are barfing.

I am running this out of my hg checkout directory.

It suspciously looks like make test expects an ON tree too.

Any other ideas?

Cheers,

begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;Portal Server Software
adr:;;2572 County Road 12 ;Fremont;NE;68025;USA
email;internet:[EMAIL PROTECTED]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-727-6933
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to