[Rt-commit] rt branch, runtime-plugin, updated. rt-3.9.6-242-gd40ce62
Chia-liang Kao
clkao at bestpractical.com
Tue Nov 30 08:36:54 EST 2010
The branch, runtime-plugin has been updated
via d40ce62dde56fa5c57056658107091cc54208106 (commit)
from 5919d8ab0d0701b0aaaf71e64722eac6618a40b0 (commit)
Summary of changes:
t/plugins/api.t | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit d40ce62dde56fa5c57056658107091cc54208106
Author: Chia-liang Kao <clkao at bestpractical.com>
Date: Tue Nov 30 21:36:48 2010 +0800
make api test work when local/lib does not exist
diff --git a/t/plugins/api.t b/t/plugins/api.t
index c28a0b2..876b92d 100644
--- a/t/plugins/api.t
+++ b/t/plugins/api.t
@@ -1,10 +1,18 @@
#!perl
use Cwd qw(abs_path);
use File::Basename qw(basename dirname);
+use File::Path qw(mkpath);
BEGIN {
require RT;
require RT::Generated;
+ require File::Temp;
+
+ # bootstrap a fake LocalLibPath
+ my $dir_name = File::Spec->rel2abs('t/tmp');
+ mkpath( $dir_name );
+ $RT::LocalLibPath = File::Temp::tempdir( CLEANUP => 1);
+
unshift @INC, abs_path($RT::LocalLibPath);
$RT::LocalPluginPath = abs_path(dirname($0)).'/_plugins';
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list