juju test suite fails if bzr whoami is unset

Bug #1260480 reported by Aaron Bentley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

The juju test suite should not be affected by the user's configuration, but the user bzr configuration can break it.
The tests should create a skeleton bzr configuration and define the BZR_HOME environment variable.

$make check
go test launchpad.net/juju-core/...
warning: building out-of-date packages:
 launchpad.net/goyaml
 labix.org/v2/mgo/bson
 launchpad.net/loggo
 labix.org/v2/mgo
 labix.org/v2/mgo/txn
 launchpad.net/tomb
 code.google.com/p/go.net/websocket
 launchpad.net/gocheck
 launchpad.net/gnuflag
 code.google.com/p/go.crypto/openpgp/errors
 code.google.com/p/go.crypto/openpgp/armor
 code.google.com/p/go.crypto/cast5
 code.google.com/p/go.crypto/openpgp/elgamal
 code.google.com/p/go.crypto/openpgp/s2k
 code.google.com/p/go.crypto/openpgp/packet
 code.google.com/p/go.crypto/openpgp
 code.google.com/p/go.crypto/openpgp/clearsign
 launchpad.net/gwacl/fork/tls
 launchpad.net/gwacl/fork/http
 launchpad.net/gwacl/logging
 launchpad.net/gwacl
 launchpad.net/goamz/aws
 launchpad.net/goamz/ec2
 launchpad.net/goamz/s3
 launchpad.net/golxc
 launchpad.net/gomaasapi
 launchpad.net/goose/errors
 launchpad.net/goose
 launchpad.net/goose/http
 launchpad.net/goose/identity
 launchpad.net/goose/sync
 launchpad.net/goose/client
 launchpad.net/goose/nova
 launchpad.net/goose/swift
 launchpad.net/goamz/ec2/ec2test
 launchpad.net/goamz/s3/s3test
 launchpad.net/goose/testservices/hook
 launchpad.net/goose/testservices/identityservice
 launchpad.net/goose/testservices
 launchpad.net/goose/testservices/novaservice
 launchpad.net/goose/testservices/swiftservice
 launchpad.net/goose/testservices/openstackservice
 launchpad.net/lpad
installing these packages with 'go test -i launchpad.net/juju-core/...' will speed future tests.

ok launchpad.net/juju-core/agent 1.828s
ok launchpad.net/juju-core/agent/tools 0.712s

----------------------------------------------------------------------
FAIL: bzr_test.go:59: BzrSuite.TestCommit

bzr_test.go:66:
    c.Assert(err, gc.IsNil)
... value *errors.errorString = &errors.errorString{s:"error running \"bzr commit\": bzr: ERROR: Unable to determine your name.\nPlease, set your name with the 'whoami' command.\nE.g. bzr whoami \"Your Name <email address hidden>\"\nexit status 3"} ("error running \"bzr commit\": bzr: ERROR: Unable to determine your name.\nPlease, set your name with the 'whoami' command.\nE.g. bzr whoami \"Your Name <email address hidden>\"\nexit status 3")

----------------------------------------------------------------------
FAIL: bzr_test.go:77: BzrSuite.TestPush

bzr_test.go:92:
    c.Assert(err, gc.IsNil)
... value *errors.errorString = &errors.errorString{s:"error running \"bzr commit\": bzr: ERROR: Unable to determine your name.\nPlease, set your name with the 'whoami' command.\nE.g. bzr whoami \"Your Name <email address hidden>\"\nexit status 3"} ("error running \"bzr commit\": bzr: ERROR: Unable to determine your name.\nPlease, set your name with the 'whoami' command.\nE.g. bzr whoami \"Your Name <email address hidden>\"\nexit status 3")

Tags: ci
Curtis Hovey (sinzui)
Changed in juju-core:
assignee: nobody → Tim Penhey (thumper)
status: Triaged → Fix Released
milestone: none → 1.19.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.