Changeset 816 for trunk/UnitTestContrib/test/bin/TestRunner.pl
- Timestamp:
- 11/19/08 19:11:33 (4 years ago)
- File:
-
- 1 edited
-
trunk/UnitTestContrib/test/bin/TestRunner.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/bin/TestRunner.pl
r14 r816 20 20 21 21 BEGIN { 22 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';22 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 23 23 # root the tree 24 24 my $here = Cwd::abs_path; … … 44 44 45 45 use strict; 46 use TWiki; # If you take this out then TestRunner.pl will fail on IndigoPerl46 use Foswiki; # If you take this out then TestRunner.pl will fail on IndigoPerl 47 47 use Unit::TestRunner; 48 48 … … 87 87 if ($options{-clean}) { 88 88 require File::Path; 89 my @x = glob "$ TWiki::cfg{DataDir}/Temp*";89 my @x = glob "$Foswiki::cfg{DataDir}/Temp*"; 90 90 File::Path::rmtree([@x]) if scalar(@x); 91 @x = glob "$ TWiki::cfg{PubDir}/Temp*";91 @x = glob "$Foswiki::cfg{PubDir}/Temp*"; 92 92 File::Path::rmtree([@x]) if scalar(@x); 93 93 } 94 94 95 testForFiles($ TWiki::cfg{DataDir}.'/Temp*');96 testForFiles($ TWiki::cfg{PubDir}.'/Temp*');95 testForFiles($Foswiki::cfg{DataDir}.'/Temp*'); 96 testForFiles($Foswiki::cfg{PubDir}.'/Temp*'); 97 97 98 98 my $testrunner = Unit::TestRunner->new();
Note: See TracChangeset
for help on using the changeset viewer.
