Merge lp:~vila/bzr/709104-windows-bash-completion into lp:bzr

Proposed by Vincent Ladeuil
Status: Merged
Approved by: Martin Packman
Approved revision: no longer in the source branch.
Merged at revision: 5638
Proposed branch: lp:~vila/bzr/709104-windows-bash-completion
Merge into: lp:bzr
Diff against target: 46 lines (+8/-7)
1 file modified
bzrlib/plugins/bash_completion/tests/test_bashcomp.py (+8/-7)
To merge this branch: bzr merge lp:~vila/bzr/709104-windows-bash-completion
Reviewer Review Type Date Requested Status
Martin Packman (community) Approve
Review via email: mp+47784@code.launchpad.net

Commit message

Mark test failures on windows as KnownFailures pending investigation.

Description of the change

This mark the failing tests as known failures.

Since this isn't a regression (the tests were previously skipped
but most probably never succeeded as mentioned in bug #709104), I
don't try to fix it now but restore sanity on babune.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

I don't see that presence of a cygwin bash should be making these tests work on windows. That said, KnownFailure is fine until someone has a chance to investigate further.

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

sent to pqm by email

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/28/2011 5:27 AM, Martin [gz] wrote:
> Review: Approve
> I don't see that presence of a cygwin bash should be making these tests work on windows. That said, KnownFailure is fine until someone has a chance to investigate further.

There is a bash.exe in your path. We find it, and think we can use it.

I don't honestly know why it is failing, but maybe there are path
issues, or expectations that don't match. (Like trying to path
C:\\path\to\cwd rather than /cygdrive/c/path/to/cwd, etc.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1C3t8ACgkQJdeBCYSNAANJQwCffFp4r05LON20mZjibL6rLxRk
+PsAoMK9JK1XoZsNL9HjPdP1btQVAZ6U
=Ch82
-----END PGP SIGNATURE-----

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/plugins/bash_completion/tests/test_bashcomp.py'
2--- bzrlib/plugins/bash_completion/tests/test_bashcomp.py 2010-05-29 10:30:53 +0000
3+++ bzrlib/plugins/bash_completion/tests/test_bashcomp.py 2011-01-28 10:55:15 +0000
4@@ -14,6 +14,8 @@
5 # along with this program; if not, write to the Free Software
6 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
7
8+import sys
9+
10 import bzrlib
11 from bzrlib import commands, tests
12 from bzrlib.tests import features
13@@ -27,6 +29,7 @@
14 """Component for testing execution of a bash completion script."""
15
16 _test_needs_features = [features.bash_feature]
17+ script = None
18
19 def complete(self, words, cword=-1):
20 """Perform a bash completion.
21@@ -95,10 +98,6 @@
22 class TestBashCompletion(tests.TestCase, BashCompletionMixin):
23 """Test bash completions that don't execute bzr."""
24
25- def __init__(self, methodName='testMethod'):
26- super(TestBashCompletion, self).__init__(methodName)
27- self.script = None
28-
29 def test_simple_scipt(self):
30 """Ensure that the test harness works as expected"""
31 self.script = """
32@@ -155,9 +154,11 @@
33 will be replaced by the bzr instance running this selftest.
34 """
35
36- def __init__(self, methodName='testMethod'):
37- super(TestBashCompletionInvoking, self).__init__(methodName)
38- self.script = None
39+ def setUp(self):
40+ super(TestBashCompletionInvoking, self).setUp()
41+ if sys.platform == 'win32':
42+ raise tests.KnownFailure(
43+ 'see bug #709104, completion is broken on windows')
44
45 def get_script(self):
46 s = super(TestBashCompletionInvoking, self).get_script()