test failure when selftest is aliased

Bug #419950 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
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']

Tags: selftest

Related branches

Vincent Ladeuil (vila)
tags: added: selftest
Revision history for this message
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...

Revision history for this message
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'.

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

Fixed while diagnosing.

Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: Confirmed → Fix Committed
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.1
status: Fix Committed → Fix Released
Vincent Ladeuil (vila)
Changed in bzr:
milestone: 2.1.0 → 2.1b1
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.