##// END OF EJS Templates
run-tests.py: use coverage.py with "#!/usr/bin/env python" tests
Alexis S. L. Carvalho -
r4321:99184c6f default
parent child Browse files
Show More
@@ -240,9 +240,15 b' def run_one(test):'
240 os.mkdir(tmpd)
240 os.mkdir(tmpd)
241 os.chdir(tmpd)
241 os.chdir(tmpd)
242
242
243 try:
244 tf = open(testpath)
245 firstline = tf.readline().rstrip()
246 tf.close()
247 except:
248 firstline = ''
243 lctest = test.lower()
249 lctest = test.lower()
244
250
245 if lctest.endswith('.py'):
251 if lctest.endswith('.py') or firstline == '#!/usr/bin/env python':
246 cmd = '%s "%s"' % (python, testpath)
252 cmd = '%s "%s"' % (python, testpath)
247 elif lctest.endswith('.bat'):
253 elif lctest.endswith('.bat'):
248 # do not run batch scripts on non-windows
254 # do not run batch scripts on non-windows
General Comments 0
You need to be logged in to leave comments. Login now