3
from __future__ import print_function
8
tests = (('test_parser.py', 'objdump_parser.py'),
9
('test_csvwriter.py', 'csvwriter.py'),
10
('test_sshmanager.py', 'sshmanager.py'),
11
('test_db.py', 'db_api.py'))
13
pycmd = 'coverage run {}'
14
covcmd = 'coverage report -m {}'
16
if __name__ == '__main__':
17
Popen = subprocess.Popen
19
for test, name in tests:
20
print('Running tests: {}'.format(test))
24
pyproc = Popen(shlex.split(pycmd.format(test)), stdout=subprocess.PIPE)
25
for line in pyproc.stdout:
26
if '----------' in line or '=========' in line:
32
covproc = Popen(shlex.split(covcmd.format(name)))