I guess I wasn't clear. I meant to say why do we need to do this at all? Why not give the correct path in the infile from the beginning (instead of adding "logs/" later on)?

Also, this will break if the nosetests command is run from test/ directory. The code should work whether the nosetests command is run from the main naarad directory of the test/ subdirectory