[MERGE] fix up test_bench_history

Aaron Bentley aaron.bentley at utoronto.ca
Tue Aug 22 15:48:21 BST 2006


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

Hi all,

test_bench_history is inappropriately affected by the cwd.

Specifically, it assumes that it is being run from a bzr.dev tree, and
will fail if 'bzr selftest test_bench_history' is run in a directory
other than the bzr tree.

This bundle fixes that by opening the tree containing the module under test.

It also nices up the test, changing a convoluted way of getting
last_revision to the standard way, and using assertEndsWith instead of
assert_(str.endswith)

And no, there's no pattern that matches revision-ids in general.  They
are free-form*.  You could probably write a pattern to match the ones
generated by bzr, at least right now, but it could go out of date.

Aaron

* technically, revision ids ending in ':' are reserved, and ':' is
otherwise used to separate namespaces, but these are just conventions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE6xk10F+nu1YWqI0RAu9cAJ9OOGRynaY8FJR/iua3527cKhJn4gCdFJE9
mELPSQVwR9p6eOY9ichdeb4=
=k0qy
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_bench_history.patch
Type: text/x-patch
Size: 2209 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060822/46d0c555/attachment.bin 


More information about the bazaar mailing list