[Koha-patches] [PATCH 2/2] bug 5327: follow-up to fix SIP tests

Galen Charlton gmcharlt at gmail.com
Sun Oct 31 23:25:47 CET 2010


* removed t/SIP_SIPServer.t - despite the file name,
  C4/SIP/SIPserver.pm is not actually a module and
  cannot be 'used' or 'required'
* set module search path so that t/SIP_ILS.t and
  t/SIP_Sip.t will pass

Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 t/SIP_ILS.t       |    2 ++
 t/SIP_SIPServer.t |   14 --------------
 t/SIP_Sip.t       |    2 ++
 3 files changed, 4 insertions(+), 14 deletions(-)
 delete mode 100755 t/SIP_SIPServer.t

diff --git a/t/SIP_ILS.t b/t/SIP_ILS.t
index 38e9ebd..4a3ee70 100755
--- a/t/SIP_ILS.t
+++ b/t/SIP_ILS.t
@@ -9,6 +9,8 @@ use warnings;
 use Test::More tests => 1;
 
 BEGIN {
+        use FindBin;
+        use lib "$FindBin::Bin/../C4/SIP";
         use_ok('C4::SIP::ILS');
 }
 
diff --git a/t/SIP_SIPServer.t b/t/SIP_SIPServer.t
deleted file mode 100755
index 48a0a9f..0000000
--- a/t/SIP_SIPServer.t
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-#
-# This Koha test module is a stub!  
-# Add more tests here!!!
-
-use strict;
-use warnings;
-
-use Test::More tests => 1;
-
-BEGIN {
-        use_ok('C4::SIP::SIPServer');
-}
-
diff --git a/t/SIP_Sip.t b/t/SIP_Sip.t
index 6db6acf..50d1229 100755
--- a/t/SIP_Sip.t
+++ b/t/SIP_Sip.t
@@ -9,6 +9,8 @@ use warnings;
 use Test::More tests => 1;
 
 BEGIN {
+        use FindBin;
+        use lib "$FindBin::Bin/../C4/SIP";
         use_ok('C4::SIP::Sip');
 }
 
-- 
1.7.0



More information about the Koha-patches mailing list