Ticket #398 (closed defect: fixed)
[patch] Test_vc.py fails on windows if there are spaces in path to vc-exes
| Reported by: | marcusl | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.10 |
| Version: | 0.7.9 | Keywords: | |
| Cc: |
Description
This is because many test suites use a single string as argument, relying on the auto-split feature, rather than providing a list or tuple of arguments.
Darcs is a notable exception, as it behaves nicely.
I'll see if I can patch cvs, svn and hg. (The latter being the most interesting as I need to get in-repo branch to work.)
Attachments
Change History
Changed 4 years ago by marcusl
-
attachment
svn_cvs_tests.patch
added
comment:1 Changed 4 years ago by marcusl
The attached patch seems to work, but I have some similar problems with the actual buildbot steps (all CVS ops fail and the SVN patch does not apply cleanly), so the tests do run, but not completely on Windows.
Nevertheless, if they maintain status quo on *nix, it's still an improvement.
Changed 4 years ago by marcusl
-
attachment
space_vc.patch
added
Split string command separately from vc-exe path
Changed 4 years ago by marcusl
-
attachment
mercurial.patch
added
Mercurial string -> list patch (needs the spaces.patch)
comment:2 Changed 4 years ago by marcusl
I should've named the filed .diff instead, so that they are properly viewable from Trac. I'll upload a comibined diff for all three patches.
Changed 4 years ago by marcusl
-
attachment
vc_test_spaces_combined.diff
added
Fixed space-in-vc-exe-path issue for SVN, HG & CVS + possibly everything else
comment:3 Changed 4 years ago by marcusl
Argh. I tried to cleanup the diff and upload a new one, but hit Enter before I could click the 'replace existing file' button. And apparently there was something wrong with that file as it doesn't show in Trac.
I hope you'll be able to make sense of the mess anyway.
comment:4 Changed 4 years ago by marcusl
- Summary changed from Test_vc.py fails on windows if there are spaces in path to vc-exes to [patch] Test_vc.py fails on windows if there are spaces in path to vc-exes
comment:5 Changed 4 years ago by marcusl
I noticed a minor typo in my patch:
-w = self.dovc(tmp, ['commit', '-m' 'commit_on_branch']) +w = self.dovc(tmp, ['commit', '-m', 'commit_on_branch'])
comment:6 Changed 4 years ago by marcusl
http://github.com/marcusl/buildbot/tree/bug187 contains a fix of this, combined with a fix for #187.
comment:8 Changed 4 years ago by marcusl
Isolated changes to http://github.com/marcusl/buildbot/tree/bug398 instead. This also contains the additional fixes for svn, cvs and hg in the attached patches (in addition to the small change in test_vc.py that I had in the bug187 branch.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Patch for CVS & SVN tests that use lists instead of spaces to separate commands