tests/compare.py

branch
trunk
changeset 38
f637b9d24c21
parent 30
1015bbd6dc5e
child 42
4a4cab75d5e6
equal deleted inserted replaced
37:c27c1073ec12 38:f637b9d24c21
115 if self.directory: 115 if self.directory:
116 target = os.path.join(ROOT_DIR, self.directory) 116 target = os.path.join(ROOT_DIR, self.directory)
117 extra_options = ['!', '-name', TESTSCRIPT_NAME] 117 extra_options = ['!', '-name', TESTSCRIPT_NAME]
118 else: 118 else:
119 target = ROOT_DIR 119 target = ROOT_DIR
120 extra_options = ['-type', 'd', 120 extra_options = ['(', '(', '-type', 'd',
121 '!', '-name', 'CVS', 121 '!', '-name', 'CVS',
122 '!', '-name', '.svn'] 122 '!', '-name', '.svn', ')',
123 '-or', '-name', 'test-text',
124 '-or', '-name', 'test-onefile', ')']
123 status = subprocess.call(['find', target, 125 status = subprocess.call(['find', target,
124 '-mindepth', '1', '-maxdepth', '1'] + 126 '-mindepth', '1', '-maxdepth', '1'] +
125 extra_options + 127 extra_options +
126 ['-exec', 'rm', '-rf', '{}', ';']) 128 ['-exec', 'rm', '-rf', '{}', ';'])
127 if status != 0: 129 if status != 0:

mercurial