test failure when selftest is aliased

Bug #419950 reported by Vincent Ladeuil on 2009-08-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Low
Vincent Ladeuil

Bug Description

$ bzr alias
bzr alias tss="selftest --parallel=fork"

$ ./bzr tss --no-plugins

...
======================================================================
FAIL: bzrlib.tests.test_crash.TestApportReporting.test_apport_report_contents (subunit.RemotedTestCase)
----------------------------------------------------------------------
RemoteException: Traceback (most recent call last):
  File "/home/vila/src/bzr/trunk/bzrlib/tests/test_crash.py", line 57, in test_apport_report_contents
    '(?m)^CommandLine:.*selftest')
AssertionError: pattern "(?m)^CommandLine:.*selftest" not found in
"""\
ProblemType: Crash
BzrDebugFlags: set(['strict_locks'])
BzrPlugins:
BzrVersion: 2.0dev
CommandLine: ['./bzr', 'tss', '--no-plugins']

Related branches

Vincent Ladeuil (vila) on 2009-08-27
tags: added: selftest
Martin Pool (mbp) wrote :

I think the whole test suite should be isolated from the user's own environment, rather than this one test being changed.

It should be run with $HOME set so as not to see those settings...

Vincent Ladeuil (vila) wrote :

$HOME is set (the test inherits from bzrlib.tests.TestCase).
That's not the problem.
The test assumes that the command used to run the test suite (including itself) was 'selftest'.

Vincent Ladeuil (vila) wrote :

Fixed while diagnosing.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Confirmed → Fix Committed
Vincent Ladeuil (vila) on 2009-09-15
Changed in bzr:
milestone: none → 2.1
status: Fix Committed → Fix Released
Vincent Ladeuil (vila) on 2009-09-17
Changed in bzr:
milestone: 2.1.0 → 2.1b1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers