diff options
author | lpsolit%gmail.com <> | 2005-03-23 03:22:34 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-03-23 03:22:34 +0000 |
commit | d9c182c4301459f433bc8537efda462b3baad316 (patch) | |
tree | 0c5b682cac85efd4df8ecc1f4f731abd4e2530b8 /testserver.pl | |
parent | Bug 286669: Add dependency on Storable (diff) | |
download | bugzilla-d9c182c4301459f433bc8537efda462b3baad316.tar.gz bugzilla-d9c182c4301459f433bc8537efda462b3baad316.tar.bz2 bugzilla-d9c182c4301459f433bc8537efda462b3baad316.zip |
Bug 280193: Round up places using data/ instead of $datadir - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit, a=justdave
Diffstat (limited to 'testserver.pl')
-rwxr-xr-x | testserver.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testserver.pl b/testserver.pl index eb9372084..a6573c8bc 100755 --- a/testserver.pl +++ b/testserver.pl @@ -19,6 +19,7 @@ # issues as possible. use Socket; +use Bugzilla::Config qw($datadir); my $envpath = $ENV{'PATH'}; use lib "."; use strict; @@ -165,8 +166,8 @@ if ($@ eq '') { $image->fill(50, 50, $red); if ($image->can('png')) { - create_file('data/testgd-local.png', $image->png); - check_image('data/testgd-local.png', 't/testgd.png', 'GD', 'PNG'); + create_file("$datadir/testgd-local.png", $image->png); + check_image("$datadir/testgd-local.png", 't/testgd.png', 'GD', 'PNG'); } else { die "GD doesn't support PNG generation\n"; } @@ -188,8 +189,8 @@ if ($@ eq '') { $chart->add_pt('bar', 16, 32); my $type = $chart->can('gif') ? 'gif' : 'png'; - $chart->$type("data/testchart-local.$type"); - check_image("data/testchart-local.$type", "t/testchart.$type", + $chart->$type("$datadir/testchart-local.$type"); + check_image("$datadir/testchart-local.$type", "t/testchart.$type", "Chart", uc($type)); }; if ($@ ne '') { |