summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/farm/annotate/run_encodings.py8
-rw-r--r--tests/farm/run/run_chdir.py10
-rw-r--r--tests/farm/run/run_timid.py12
-rw-r--r--tests/farm/run/run_xxx.py10
4 files changed, 20 insertions, 20 deletions
diff --git a/tests/farm/annotate/run_encodings.py b/tests/farm/annotate/run_encodings.py
index 527cd88f..46d8c643 100644
--- a/tests/farm/annotate/run_encodings.py
+++ b/tests/farm/annotate/run_encodings.py
@@ -1,10 +1,10 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-copy("src", "out")
+copy("src", "out_encodings")
run("""
coverage run utf8.py
coverage annotate utf8.py
- """, rundir="out")
-compare("out", "gold_encodings", "*,cover")
-clean("out")
+ """, rundir="out_encodings")
+compare("out_encodings", "gold_encodings", "*,cover")
+clean("out_encodings")
diff --git a/tests/farm/run/run_chdir.py b/tests/farm/run/run_chdir.py
index 9e3c7515..1da4e9a3 100644
--- a/tests/farm/run/run_chdir.py
+++ b/tests/farm/run/run_chdir.py
@@ -1,15 +1,15 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-copy("src", "out")
+copy("src", "out_chdir")
run("""
coverage run chdir.py
coverage report
- """, rundir="out", outfile="stdout.txt")
-contains("out/stdout.txt",
+ """, rundir="out_chdir", outfile="stdout.txt")
+contains("out_chdir/stdout.txt",
"Line One",
"Line Two",
"chdir"
)
-doesnt_contain("out/stdout.txt", "No such file or directory")
-clean("out")
+doesnt_contain("out_chdir/stdout.txt", "No such file or directory")
+clean("out_chdir")
diff --git a/tests/farm/run/run_timid.py b/tests/farm/run/run_timid.py
index a632cea3..0370cf84 100644
--- a/tests/farm/run/run_timid.py
+++ b/tests/farm/run/run_timid.py
@@ -17,16 +17,16 @@ import os
if os.environ.get('COVERAGE_COVERAGE', ''):
skip("Can't test timid during coverage measurement.")
-copy("src", "out")
+copy("src", "out_timid")
run("""
python showtrace.py none
coverage run showtrace.py regular
coverage run --timid showtrace.py timid
- """, rundir="out", outfile="showtraceout.txt")
+ """, rundir="out_timid", outfile="showtraceout.txt")
# When running without coverage, no trace function
# When running timidly, the trace function is always Python.
-contains("out/showtraceout.txt",
+contains("out_timid/showtraceout.txt",
"none None",
"timid PyTracer",
)
@@ -34,10 +34,10 @@ contains("out/showtraceout.txt",
if os.environ.get('COVERAGE_TEST_TRACER', 'c') == 'c':
# If the C trace function is being tested, then regular running should have
# the C function, which registers itself as f_trace.
- contains("out/showtraceout.txt", "regular CTracer")
+ contains("out_timid/showtraceout.txt", "regular CTracer")
else:
# If the Python trace function is being tested, then regular running will
# also show the Python function.
- contains("out/showtraceout.txt", "regular PyTracer")
+ contains("out_timid/showtraceout.txt", "regular PyTracer")
-clean("out")
+clean("out_timid")
diff --git a/tests/farm/run/run_xxx.py b/tests/farm/run/run_xxx.py
index 62a862e5..1db5b0d0 100644
--- a/tests/farm/run/run_xxx.py
+++ b/tests/farm/run/run_xxx.py
@@ -1,15 +1,15 @@
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-copy("src", "out")
+copy("src", "out_xxx")
run("""
coverage run xxx
coverage report
- """, rundir="out", outfile="stdout.txt")
-contains("out/stdout.txt",
+ """, rundir="out_xxx", outfile="stdout.txt")
+contains("out_xxx/stdout.txt",
"xxx: 3 4 0 7",
"\nxxx ", # The reporting line for xxx
" 7 1 86%" # The reporting data for xxx
)
-doesnt_contain("out/stdout.txt", "No such file or directory")
-clean("out")
+doesnt_contain("out_xxx/stdout.txt", "No such file or directory")
+clean("out_xxx")