Ticket #398 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[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

svn_cvs_tests.patch Download (2.9 KB) - added by marcusl 4 years ago.
Patch for CVS & SVN tests that use lists instead of spaces to separate commands
space_vc.patch Download (248 bytes) - added by marcusl 4 years ago.
Split string command separately from vc-exe path
mercurial.patch Download (2.4 KB) - added by marcusl 4 years ago.
Mercurial string -> list patch (needs the spaces.patch)
vc_test_spaces_combined.diff Download (9.1 KB) - added by marcusl 4 years ago.
Fixed space-in-vc-exe-path issue for SVN, HG & CVS + possibly everything else
vc_test_spaces_combined.2.diff Download (8.4 KB) - added by marcusl 4 years ago.

Change History

Changed 4 years ago by marcusl

Patch for CVS & SVN tests that use lists instead of spaces to separate commands

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

Split string command separately from vc-exe path

Changed 4 years ago by marcusl

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

Fixed space-in-vc-exe-path issue for SVN, HG & CVS + possibly everything else

Changed 4 years ago by marcusl

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:7 Changed 4 years ago by marcusl

  • Keywords review added

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.

comment:9 Changed 4 years ago by dustin

  • Keywords review removed
  • Status changed from new to closed
  • Resolution set to fixed

commit merged - thanks!

comment:10 Changed 4 years ago by dustin

  • Milestone changed from undecided to 0.7.10
Note: See TracTickets for help on using tickets.