diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 21:59:07 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 21:59:07 -0400 |
commit | 3e9f23a67d8f7553e6fdd0ab09d7c209f75fd413 (patch) | |
tree | 150848c3c65275749a7167c143805a3b36c5eacf | |
parent | 0f78889a1afa99df36f1e10c3e26c997d0b0c00c (diff) | |
download | python-coveragepy-git-3e9f23a67d8f7553e6fdd0ab09d7c209f75fd413.tar.gz |
Make the farm tests more isolated by forcing them to erase coverage data first.
-rw-r--r-- | test/farm/annotate/annotate_dir.py | 3 | ||||
-rw-r--r-- | test/farm/annotate/run.py | 2 | ||||
-rw-r--r-- | test/farm/annotate/run_multi.py | 11 |
3 files changed, 7 insertions, 9 deletions
diff --git a/test/farm/annotate/annotate_dir.py b/test/farm/annotate/annotate_dir.py index 23dfff30..3e37f9ed 100644 --- a/test/farm/annotate/annotate_dir.py +++ b/test/farm/annotate/annotate_dir.py @@ -1,8 +1,7 @@ copy("src", "run") run(""" - coverage -x multi.py + coverage -e -x multi.py coverage -a -d out_anno_dir """, rundir="run") compare("run/out_anno_dir", "gold_anno_dir", "*,cover", left_extra=True) -clean("out_anno_dir") clean("run") diff --git a/test/farm/annotate/run.py b/test/farm/annotate/run.py index 8ecfce89..c645f21c 100644 --- a/test/farm/annotate/run.py +++ b/test/farm/annotate/run.py @@ -1,6 +1,6 @@ copy("src", "out") run(""" - coverage -x white.py + coverage -e -x white.py coverage -a white.py """, rundir="out") compare("out", "gold", "*,cover") diff --git a/test/farm/annotate/run_multi.py b/test/farm/annotate/run_multi.py index 586aa36c..872f0976 100644 --- a/test/farm/annotate/run_multi.py +++ b/test/farm/annotate/run_multi.py @@ -1,8 +1,7 @@ -outdir = "out_multi" -copy("src", outdir) +copy("src", "out_multi") run(""" - coverage -x multi.py + coverage -e -x multi.py coverage -a - """, rundir=outdir) -compare(outdir, "gold_multi", "*,cover") -clean(outdir) + """, rundir="out_multi") +compare("out_multi", "gold_multi", "*,cover") +clean("out_multi") |