Bugzilla – Attachment 18873 Details for
Bug 8190
Add a logging module to Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8190: FIX Unit test
Bug-8190-FIX-Unit-test.patch (text/plain), 1.26 KB, created by
Marcel de Rooy
on 2013-06-12 11:44:20 UTC
(
hide
)
Description:
Bug 8190: FIX Unit test
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-06-12 11:44:20 UTC
Size:
1.26 KB
patch
obsolete
>From 16ad70e76d02c0c341392f889d1d9b2f699d6737 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 27 Dec 2012 15:37:44 +0100 >Subject: [PATCH] Bug 8190: FIX Unit test >Content-Type: text/plain; charset=utf-8 > >Set the KOHA_LOG environment variable in the test > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/Logger.t | 12 ++---------- > 1 files changed, 2 insertions(+), 10 deletions(-) > >diff --git a/t/Logger.t b/t/Logger.t >index bff7733..1e42180 100644 >--- a/t/Logger.t >+++ b/t/Logger.t >@@ -2,16 +2,14 @@ > > use utf8; > use Modern::Perl; >-if ( not $ENV{KOHA_LOG} ) { >- usage(); >- exit; >-} > > use Test::More; > require C4::Context; > import C4::Context; > plan tests => 15; > >+$ENV{KOHA_LOG} = q{/tmp/logger.log}; >+ > my $logfile = $ENV{KOHA_LOG}; > > use_ok('Koha::Utils::Logger'); >@@ -87,9 +85,3 @@ sub test_calledby { > $log->error($msg); > } > >-sub usage { >- warn "\n\n+=======================================================+\n"; >- warn qq{| You must call this test with a KOHA_LOG env var like: |\n}; >- warn qq{| KOHA_LOG="/tmp/t1.log" prove t/Logguer.t |\n}; >- warn "+=======================================================+\n\n"; >-} >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8190
:
9921
|
10996
|
12257
|
12264
|
12265
|
12270
|
12282
|
12283
|
12284
|
12287
|
12743
|
12744
|
12745
|
12746
|
13739
|
13740
|
13762
|
13763
|
13925
|
13926
|
14294
|
14296
|
14318
|
14319
|
14320
|
14321
|
14324
|
14388
|
14703
|
14704
|
14705
|
16426
|
16427
|
16428
|
16429
|
16430
|
18799
|
18800
|
18801
|
18802
|
18803
|
18819
|
18820
|
18870
|
18871
|
18872
|
18873
|
18874
|
18875
|
18876
|
18877
|
18880
|
18881
|
18882
|
18883
|
18884
|
18886
|
18887
|
18888
|
18890
|
34837
|
34838
|
34839
|
34840
|
34841
|
34842
|
34843
|
34844
|
34845