summaryrefslogtreecommitdiff
path: root/tests/farm/run/run_chdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/farm/run/run_chdir.py')
-rw-r--r--tests/farm/run/run_chdir.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/farm/run/run_chdir.py b/tests/farm/run/run_chdir.py
new file mode 100644
index 0000000..f459f50
--- /dev/null
+++ b/tests/farm/run/run_chdir.py
@@ -0,0 +1,12 @@
+copy("src", "out")
+run("""
+ coverage run chdir.py
+ coverage -r
+ """, rundir="out", outfile="stdout.txt")
+contains("out/stdout.txt",
+ "Line One",
+ "Line Two",
+ "chdir"
+ )
+doesnt_contain("out/stdout.txt", "No such file or directory")
+clean("out")