# HG changeset patch # User Idan Kamara # Date 1315584602 -10800 # Node ID e89dd99638cebbe4a163631b9fdac331b1a590a5 # Parent a0328b08e02822525c0e1fab12c18acc7991a70b test-manifest: Windows doesn't have symlink or executable bit diff -r a0328b08e028 -r e89dd99638ce tests/test-manifest.py --- a/tests/test-manifest.py Fri Sep 09 19:10:02 2011 +0300 +++ b/tests/test-manifest.py Fri Sep 09 19:10:02 2011 +0300 @@ -3,16 +3,23 @@ class test_manifest(common.basetest): def test_basic(self): self.append('a', 'a') - self.append('b', 'b') - os.chmod('b', os.stat('b')[0] | stat.S_IEXEC) - os.symlink('b', 'c') + files = ['a'] + manifest = [('047b75c6d7a3ef6a2243bd0e99f94f6ea6683597', '644', False, + False, 'a')] + + if os.name == 'posix': + self.append('b', 'b') + os.chmod('b', os.stat('b')[0] | stat.S_IEXEC) + os.symlink('b', 'c') + + files.extend(['b', 'c']) + manifest.extend([('62452855512f5b81522aa3895892760bb8da9f3f', '755', + True, False, 'b'), + ('62452855512f5b81522aa3895892760bb8da9f3f', '644', + False, True, 'c')]) + self.client.commit('first', addremove=True) - self.assertEquals(list(self.client.manifest(all=True)), ['a', 'b', 'c']) - - manifest = \ - [('047b75c6d7a3ef6a2243bd0e99f94f6ea6683597', '644', False, False, 'a'), - ('62452855512f5b81522aa3895892760bb8da9f3f', '755', True, False, 'b'), - ('62452855512f5b81522aa3895892760bb8da9f3f', '644', False, True, 'c')] + self.assertEquals(list(self.client.manifest(all=True)), files) self.assertEquals(list(self.client.manifest()), manifest)