[win32] `bzr selftest > test.log` creates too long lines

Bug #777650 reported by Alexander Belchenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

While running selftest without redirecting its output bzr never fill lines with characters up to the terminal width. So all progress bar messages correctly disappear.

C:\work\Bazaar\plugins\qbzr>make test
bzr selftest -s bp.qbzr
bzr selftest: C:\Program Files\Bazaar\bzr.exe
   C:\Program Files\Bazaar\lib\library.zip\bzrlib
   bzr-2.4b1 python-2.6.6 Windows-XP-5.1.2600-SP3

----------------------------------------------------------------------
Ran 162 tests in 30.594s

OK
Missing feature '_PyEnchantFeature' skipped 7 tests.

But situation is much worse with redirecting the output:

C:\work\Bazaar\plugins\qbzr>make test > test.log
| [56/162 in 10s] bzrlib.plugins.qbzr.lib.tests.test_log.TestLogGetBranchesAndFileIds.test_open_locations_in_shared_reporaise_no
| [67/162 in 12s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphProviderState.test_collapse_dosent_colapses_prev_ex
| [73/162 in 12s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizLayouts.test_hidden_branch_line_hides_child_line
| [74/162 in 12s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizLayouts.test_lots_of_merges_between_branch_lines
| [77/162 in 12s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizLayouts.test_merge_line_hidden_merge_rev_filtere
| [84/162 in 13s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizWithBranches.test_branch_tips_date_sorted_with_w
| [86/162 in 15s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizWithBranches.test_get_revid_branch_info_with_gho
| [94/162 in 17s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizWithBranches.test_with_working_tree_provider_fil
| [95/162 in 18s] bzrlib.plugins.qbzr.lib.tests.test_loggraphviz.TestLogGraphVizWithBranches.test_with_working_tree_provider_out
| [99/162 in 19s] bzrlib.plugins.qbzr.lib.tests.test_revisionmessagebrowser.TestHtmlUtils.test_htmlize_convert_leading_spaces_to
| [114/162 in 19s] bzrlib.plugins.qbzr.lib.tests.test_subprocess.TestExceptionInstanceSerialisation.test_uncommittedchanges_disp
| [162/162 in 29s] bzrlib.plugins.qbzr.lib.tests.test_util.TestUtil.test_url_for_displayct_from_urlwsselectallith_othershers

That's with bzr 2.4b1. In the previous releases it has worked a bit different though.

Revision history for this message
Alexander Belchenko (bialix) wrote :

That was tested with terminal width 128 characters.

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Confirmed
Revision history for this message
Martin Packman (gz) wrote :

I ran into this trying to test on a remote machine the other day. As a workaround, I did `BZR_COLUMNS=80 ./bzr selftest ...` which seemed to make things sane again.

Martin Packman (gz)
Changed in bzr:
importance: Undecided → Low
tags: added: progress selftest ui
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.