I have following simple codes:
#ex.py import os, subprocess, shlex,time def extest(): cmd = 'python test.py' cmdlist = shlex.split(cmd) process = subprocess.Popen(cmdlist) extest() time.sleep(3) print "ex---done"
#test.py: print "test"
I set COVERAGE_PROCESS_START to .bashrc, and also insert following code to sitecustomize.py:
import coverage coverage.process_startup()
after that, i run: coverage run --parallel -source=. ex.py I expect could get the report for both ex.py and test.py, however, none of them appear in the report ,instead, something like:
/usr/local/bin/coverage /usr/share/pyshared/zope/__init__ ...
appear in the report
what could be the reason?