[Pkg-bazaar-commits] ./bzr/unstable r456: - tests for bzr root
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:19:24 UTC 2009
------------------------------------------------------------
revno: 456
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-05-11 12:30:01 +1000
message:
- tests for bzr root
modified:
testbzr
-------------- next part --------------
=== modified file 'testbzr'
--- a/testbzr 2005-05-09 06:09:42 +0000
+++ b/testbzr 2005-05-11 02:30:01 +0000
@@ -140,6 +140,7 @@
runcmd(['mkdir', TESTDIR])
cd(TESTDIR)
+ test_root = os.getcwd()
progress("introductory commands")
runcmd("bzr version")
@@ -166,6 +167,8 @@
cd('branch1')
runcmd('bzr init')
+ assert backtick('bzr root')[:-1] == os.path.join(test_root, 'branch1')
+
progress("status of new file")
f = file('test.txt', 'wt')
@@ -261,6 +264,7 @@
runcmd(['bzr', 'commit', '-m', 'rename nested subdirectories'])
cd('sub1/sub2')
+ assert backtick('bzr root')[:-1] == os.path.join(test_root, 'branch1')
runcmd('bzr move ../hello.txt .')
assert exists('./hello.txt')
assert backtick('bzr relpath hello.txt') == 'sub1/sub2/hello.txt\n'
More information about the Pkg-bazaar-commits
mailing list