[MERGE] several tweaks for formatting selftest output (was: Re: [rfc] why selftest -v don't use osutils.terminal_width() for formatting output?)
Alexander Belchenko
bialix at ukr.net
Tue Dec 12 14:29:59 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> In bzr 0.12 and early 'selftest -v' use osutils.terminal_width() to
>> format report. Now it's gone.
>>
>> The line in question is:
>>
>> self.stream.write(self._ellipsize_to_right(name, 60))
>>
>> in method report_test_start() in class VerboseTestResult.
>> This change introduced by
>> revid:mbp at sourcefrog.net-20061029065311-c0db791096b06831.
>>
>> I think using hardwired value 60 to format report is not good.
>> But probably Martin has some strong reasons to do this?
>>
>> I'd like to switch hardwired 60 to (osutils.terminal_width()-20).
>
> Sounds reasonable to me.
Here the patch.
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFfrznzYr338mxwCURAsaYAJ92KsYJ6HuKTEqaUUroW/ssAeiP1QCeJBT0
8DFnI7Ou395/dI1A8JTcCSg=
=KsG5
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: selftest.fixes.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20061212/e24702e0/attachment.diff
More information about the bazaar
mailing list