tests/compare.py

branch
trunk
changeset 8
97388f5ff770
parent 7
1f3cb3845dfd
child 10
f0acfe12a0e2
equal deleted inserted replaced
7:1f3cb3845dfd 8:97388f5ff770
48 'test-recursive-badperms.tar.bz2': ( 48 'test-recursive-badperms.tar.bz2': (
49 ['-r'], 49 ['-r'],
50 ['mkdir test-recursive-badperms', 50 ['mkdir test-recursive-badperms',
51 'cd test-recursive-badperms', 51 'cd test-recursive-badperms',
52 'tar -jxf ../test-recursive-badperms.tar.bz2', 52 'tar -jxf ../test-recursive-badperms.tar.bz2',
53 'tar -xf test-badperms.tar', 53 'mkdir test-badperms',
54 'mv testdir test-badperms', 54 'cd test-badperms',
55 'chmod 755 test-badperms'], 55 'tar -xf ../test-badperms.tar',
56 ['if [ "x`cat test-recursive-badperms/test-badperms/testfile`" = "xhey" ]', 56 'chmod 755 testdir'],
57 ['if [ "x`cat test-recursive-badperms/test-badperms/testdir/testfile`" = \
58 "xhey" ]',
57 'then exit 0; else exit 1; fi'] 59 'then exit 0; else exit 1; fi']
58 )} 60 )}
59 61
60 if os.path.exists('scripts/x') and os.path.exists('tests'): 62 if os.path.exists('scripts/x') and os.path.exists('tests'):
61 os.chdir('tests') 63 os.chdir('tests')

mercurial