[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 7e282412eb10c4a25604fea6de739f9558fb6fe4
Evergreen Git
git at git.evergreen-ils.org
Thu Jul 28 15:59:08 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_0 has been updated
via 7e282412eb10c4a25604fea6de739f9558fb6fe4 (commit)
from 0104c386c3e76e59d114a2f9b5216541435d46fb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7e282412eb10c4a25604fea6de739f9558fb6fe4
Author: Dan Scott <dan at coffeecode.net>
Date: Thu Jul 28 15:49:12 2011 -0400
Fix broken builds due to test that can't find its data
LP 817699 reports a problem that began with commit
e9cd992fa4dbf1013346336193cb7469ecee10a8, reintroducing a problem that
had previously been resolved with commit
f017d1261c369b9b5cc3c9cfc4f50d3cdf12a445. In short, tests can and are
run from different directories, but a new test opened a file without
making any allowance that the test might be run from anything other than
the /test/ directory.
This fix uses the dirname(__FILE__) approach to provide the appropriate
relative directory for the test data, and enables the tests to be
processed without dying.
Signed-off-by: Dan Scott <dscott at laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t b/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t
index fd8fedd..41b6ec6 100644
--- a/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t
+++ b/Open-ILS/src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t
@@ -64,7 +64,8 @@ while ($rec = testlib::load_MARC_rec($testdata, $testno++)) {
close $testdata;
# test: passthru_open_ended
-open($testdata, "<mfhddata2.txt") or die("Cannot open 'mfhddata2.txt': $!");
+my $testfile2 = dirname(__FILE__) . "/mfhddata2.txt";
+open($testdata, "<", $testfile2) or die("Cannot open '$testfile2': $!");
$rec = MFHD->new(testlib::load_MARC_rec($testdata, $testno));
my $rec2 = MFHD->new(testlib::load_MARC_rec($testdata, $testno));
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/OpenILS/Utils/MFHD/test/mfhd.t | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list