[RFC] numbered dirs for TestCaseInTempDir

Alexander Belchenko bialix at ukr.net
Sun Mar 4 18:07:04 GMT 2007


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

I implement new feature for selftesting: bzr can use numbered dirs
instead of named dirs for TestCaseInTempDir (and descendants).
This change is important for win32, because of problem with
long names. With this change I no longer have 'File exists'
errors in tests.

bzr already has counter of running tests, and use this counter
for numbered dirs.
I show number of test in verbose output, and in error/fails
reports of non-verbose output. Temp dir name created as
'%05d' % count
and have values 00001, 00002.
So upper limit is 100K (minus one). Currently we have about 5000 tests.
So this limit is far enough.

To determine relationship between number and test name
I create special [text] file inside each numbered directory
with full name of test.

I need to know: can I make it as default behavior for selftest,
or I need to switch this behavior with comman-line flag
'--numbered-dirs'?

I'm strongly convinced that numbered dirs should be used
by default on win32. Can I do this as default for all platforms?
For consistency reason?

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

iD8DBQFF6wrIzYr338mxwCURAkTQAJ9bO7LELGkaz1qmA9GyC26KsOloVgCfYeHo
L0jdctxIWxtT0Q9ehEVnFd4=
=7o/o
-----END PGP SIGNATURE-----




More information about the bazaar mailing list