selftest can't be run in a bound branch

Bug #309309 reported by Vincent Ladeuil
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
High
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

As mentioned during the behavior change regarding branch.nick, selftest can't be run anymore in bound branches if access to the master branch requires authentication.

This is the case for branches bound to lp branches.

One of the reasons is that some tests use 'bzr --version' as a
'do very little' command and, when the bound branch requires some
password (like any ssh one does)... selftest prompts and hangs..

I use an ssh agent but the test suite (rightly) reset the
SSH_AUTH_SOCK.

bzr selftest -s bb.test_selftest.TestRunBzrSubprocess.test_run_bzr_subprocess

is one such test.

Tags: selftest
Revision history for this message
Vincent Ladeuil (vila) wrote :

Of course the work-around is to unbind the branch, but I use bound branches for a reason.

Revision history for this message
Marius Kruger (amanica) wrote :

so either we need to do one of the following
* not show the nick in `bzr --version`
* fix the tests to use some other 'do very little' command. eg. `bzr --help`
* revert the nick behaviour to not read the nick from the master branch (for bound branches)
   I'm still awaiting feedback on this.

Revision history for this message
Robert Collins (lifeless) wrote :

This is fixed by my test_selftest work, for that particular test. I don't know if there are other cases of it.

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Vincent Ladeuil (vila) wrote :

Still occurring with bzr revno 5544.

Jelmer Vernooij (jelmer)
tags: added: selftest
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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