You are here: Foswiki>Tasks Web>Item9312 (15 Jul 2010, GeorgeClark)Edit Attach

Item9312: TemplateTests failing - appears that cwd may have been changed by a previous test

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary TemplateTests failing - appears that cwd may have been changed by a previous test
ReportedBy GeorgeClark
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:08ad867b0e0f distro:56173ab3d4d8 distro:b378c128d1a2
TargetRelease n/a
ReleasedIn 1.1.0
Topic revision: r6 - 15 Jul 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy