I have a Python project building with Hudson. Most unit tests work correctly, but any tests that require writing to the file system (I have a class that uses tarfiles, for example) can't find the tmp directory I have set up for intermediate processing (my tearDown methods remove any files under the relative tmp directory).
Here is my project structure:
- src
- tests
- fixtures (static files here)
- unit (unit tests here)
- tmp
- tests
Here is an example error:
OSError: [Errno 2] No such file or directory: '../../tmp'
I assume this is happening because Hudson is not processing the files while in the directory unit, but rather some other working directory.
What is Hudson's working directory? Can it be configured? Can relative paths work at all?