Item9312: TemplateTests failing - appears that cwd may have been changed by a previous test
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: n/a
Applies To: Engine
Component:
Branches:
Tests are failing with:
mkdir /fake_templates: Permission denied at /usr/share/perl/5.10/File/Path.pm line 124
File::Path::_mkpath('HASH(0x24194768)', 'ARRAY(0x24137160)') called at /usr/share/perl/5.10/File/Path.pm line 87
File::Path::mkpath('/fake_templates') called at /home/foswiki/NightlyBuild/trunk/core/test/unit/TemplatesTests.pm line 36
TemplatesTests::set_up('TemplatesTests=HASH(0x2410db28)') called at /home/foswiki/NightlyBuild/trunk/core/lib/Unit/TestRunner.pm line 356
Unit::TestRunner::runOne('TemplatesTests=HASH(0x2410db28)', 'TemplatesTests', undef) called at /home/foswiki/NightlyBuild/trunk/core/lib/Unit/TestRunner.pm line 127
Unit::TestRunner::start('Unit::TestRunner=HASH(0x864a918)', 'FoswikiSuite.pm') called at ../bin/TestRunner.pl line 120
Template Test prepends the current directory to the path so it appears that the working directory has changed
--
GeorgeClark - 13 Jul 2010
TemplateTests has been updated to no longer depend upon the current working directory.
From the results of the test run, it appears that SaveScriptTests is the culprit for the modified working directory, except that it doesn't issue any changes to the working directory in the test.
TestRunner has been updated to no longer die if working directory changes - Thanks Babar.
--
GeorgeClark - 13 Jul 2010