Subject: | Enhancement Req: change working directory to script directory |
Date: | Fri, 17 Aug 2007 02:32:42 -0700 (PDT) |
To: | bug-Test-Harness [...] rt.cpan.org |
From: | Gunnar Strand <gunnarstrand [...] yahoo.com> |
I am running tests in sub directories from where Test::Harness is run. Some tests depends on existing files and directories, local to the test scripts. I would like Test::Harness to change the working directory to the current script when running tests to avoid having to hard code absolute paths in the test scripts. Example:
runtests('subtest/test.pl', 'deepsub/sub/test.pl');
The currect working directory should be "subtest" for the first, and "deepsub/sub" for the second test.
KR,
Gunnar
Show quoted text
__________________________________________________________
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling.
Sök och jämför hos Yahoo! Shopping.
http://shopping.yahoo.se/c-100015813-bredband.html?partnerId=96914325